-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add step0 in onboardings * feat(onbarding): nouvel écran choix de famille * up ressenti * screen onboarding drugs * Update reminder.js
- Loading branch information
Showing
12 changed files
with
363 additions
and
290 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 0 additions & 121 deletions
121
src/scenes/onboarding/onboardingDrugs/drug-information.js
This file was deleted.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
src/scenes/onboarding/onboardingDrugs/drugs-information.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import React from 'react'; | ||
import { | ||
View, | ||
TouchableOpacity, | ||
StyleSheet, | ||
SafeAreaView, | ||
ScrollView, | ||
Image, | ||
Linking, | ||
} from 'react-native'; | ||
import Text from '../../../components/MyText'; | ||
import {colors} from '../../../utils/colors'; | ||
import BackButton from '../../../components/BackButton'; | ||
import logEvents from '../../../services/logEvents'; | ||
|
||
const OnboardingDrugsInformation = ({navigation}) => { | ||
return ( | ||
<SafeAreaView style={styles.safe}> | ||
<View style={styles.headerContainer}> | ||
<BackButton onPress={navigation.goBack} /> | ||
<Image | ||
style={styles.image} | ||
source={require('../../../../assets/imgs/logo2.png')} | ||
/> | ||
</View> | ||
<ScrollView contentContainerStyle={styles.scrollContainer}> | ||
<View style={styles.paragraph}> | ||
<Text style={styles.standardText}> | ||
Les noms des médicaments et les posologies ne sont donnés qu'à titre | ||
indicatif pour vous aider dans le suivi de votre traitement | ||
médicamenteux. Il convient néanmoins de toujours se référer à la | ||
prescription médicale vous concernant et à votre médecin référent | ||
pour tout ce qui a trait à votre traitement médicamenteux en | ||
particulier et à votre suivi en général. | ||
</Text> | ||
</View> | ||
<View style={styles.paragraph}> | ||
<Text style={styles.standardText}> | ||
Voir plus d'informations sur les traitements médicamenteux :{' '} | ||
</Text> | ||
<TouchableOpacity | ||
onPress={() => { | ||
logEvents.logInfoClick('reseau_pic'); | ||
Linking.openURL( | ||
'http://www.reseau-pic.info/?dest=fiches/nom.php', | ||
); | ||
}}> | ||
<Text style={styles.link}>reseau-pic.com</Text> | ||
</TouchableOpacity> | ||
</View> | ||
</ScrollView> | ||
</SafeAreaView> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
paragraph: { | ||
padding: 20, | ||
fontSize: 18, | ||
marginVertical: 15, | ||
}, | ||
headerContainer: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
paddingRight: 20, | ||
}, | ||
image: { | ||
height: 50, | ||
width: 50, | ||
}, | ||
safe: { | ||
flex: 1, | ||
backgroundColor: 'white', | ||
}, | ||
scrollContainer: { | ||
paddingBottom: 80, | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
standardText: { | ||
fontSize: 18, | ||
color: colors.DARK_BLUE, | ||
textAlign: 'center', | ||
}, | ||
link: { | ||
color: colors.LIGHT_BLUE, | ||
textDecorationLine: 'underline', | ||
fontSize: 18, | ||
textAlign: 'center', | ||
}, | ||
}); | ||
|
||
export default OnboardingDrugsInformation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.