From 2d2630f2c7530d0c769c854d05b922b703fa9ee6 Mon Sep 17 00:00:00 2001 From: haveyaseen Date: Tue, 14 Apr 2020 01:10:16 +0200 Subject: [PATCH] implement symptom info screen --- App/screens/SymptomInfo.tsx | 135 ++++++++++++++++++++++++++++++++---- 1 file changed, 122 insertions(+), 13 deletions(-) diff --git a/App/screens/SymptomInfo.tsx b/App/screens/SymptomInfo.tsx index fc51604..cd20aab 100644 --- a/App/screens/SymptomInfo.tsx +++ b/App/screens/SymptomInfo.tsx @@ -1,25 +1,134 @@ import React from 'react'; -import {Button, Text} from 'react-native'; +import {Text, View, StyleSheet} from 'react-native'; import {StackNavigationProp} from '@react-navigation/stack'; +import {Button} from 'react-native-elements'; +import Icon from 'react-native-vector-icons/Feather'; import {RootStackParamList} from 'App/App'; +import AlphaNotice from '../components/AlphaNotice'; + +const styles = StyleSheet.create({ + container: { + flex: 1, + padding: 16, + backgroundColor: '#ffffff', + }, + cancel: { + position: 'absolute', + left: 12, + top: 12, + }, + chevronLeftIcon: {}, + logoWrapper: { + marginLeft: 'auto', + marginRight: 'auto', + position: 'relative', + }, + alphaNoticeRoot: { + position: 'absolute', + top: 12, + left: 48, + padding: 0, + }, + alphaNoticeText: { + fontSize: 14, + lineHeight: 14, + }, + logo: { + color: '#7dc6b6', + fontSize: 32, + textAlign: 'center', + fontFamily: 'Righteous-Regular', + marginBottom: 16, + }, + explanation: { + fontSize: 18, + padding: 5, + paddingTop: 64, + paddingBottom: 50, + color: '#595959', + fontFamily: 'Ubuntu-R', + lineHeight: 26, + }, + buttonOpenApp: { + backgroundColor: '#91e6d3', + borderRadius: 6, + marginBottom: 48, + padding: 12, + }, + buttonOpenAppTitle: { + color: '#2c2c2c', + letterSpacing: 1, + textTransform: 'uppercase', + fontSize: 14, + fontFamily: 'Ubuntu-M', + }, + buttonOther: { + backgroundColor: '#ffffff', + borderColor: '#7dc6b6', + borderWidth: 2, + borderRadius: 6, + marginBottom: 8, + padding: 12, + }, + buttonOtherTitle: { + color: '#595959', + letterSpacing: 1, + textTransform: 'uppercase', + fontSize: 14, + fontFamily: 'Ubuntu-M', + }, +}); type SymptomInfoScreenNavigationProp = StackNavigationProp< RootStackParamList, 'SymptomInfo' >; -export class SymptomInfo extends React.Component<{ +export function SymptomInfo({ + navigation, +}: { navigation: SymptomInfoScreenNavigationProp; -}> { - render() { - return ( - <> - Some info what to do if symptoms exist -