-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAntibiotics_Usage.js
executable file
·32 lines (27 loc) · 1.57 KB
/
Antibiotics_Usage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import { View, Text, Dimensions, StatusBar } from 'react-native';
import { Button } from 'native-base';
import I18n from './locales/i18n.js';
const { height } = Dimensions.get('window');
export default class AntibioticsUsageScreen extends React.PureComponent {
static navigationOptions = () => ({
title: 'Healthy Host',
headerTintColor: 'white',
headerBackTitle: "Back",
headerStyle: {
backgroundColor: 'royalblue'
}
});
render() {
return (
<View style={{ flex: 1, alignItems: "center" }}>
<StatusBar barStyle="light-content" />
<Text style={{ padding: 10, fontSize: 18 }}>{I18n.t('Antibiotics.0.Description')}</Text>
{/* Takes user to improper usage screen */}
<Button onPress={() => { this.props.navigation.navigate('Improper_Usage') }} style={{ textAlign: "center", height: "35%", position: 'absolute', bottom: "35%", backgroundColor: 'red', alignSelf: "center", width: '100%', justifyContent: "center", borderRadius: 0 }}><Text style={{ fontSize: 45, color: "white", fontWeight: "bold" }}>{I18n.t('Antibiotics.0.Usage.0')}</Text></Button>
{/* Takes user to proper usage screen */}
<Button onPress={() => { this.props.navigation.navigate('Proper_Usage') }} style={{ textAlign: "center", height: "35%", position: 'absolute', bottom: 0, backgroundColor: 'green', alignSelf: "center", width: '100%', justifyContent: "center", borderRadius: 0 }}><Text style={{ fontSize: 45, color: "white", fontWeight: "bold" }}>{I18n.t('Antibiotics.0.Usage.1')}</Text></Button>
</View>
);
}
}