diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 85c1fb8..dfac0b3 100644 --- a/src/screens/Onboarding.js +++ b/src/screens/Onboarding.js @@ -14,7 +14,7 @@ import { } from 'react-native'; import React, { useContext, useEffect, useRef, useState } from 'react'; import { responsiveHeight, responsiveWidth } from 'react-native-responsive-dimensions'; -import { AntDesign, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons'; +import { AntDesign, FontAwesome, FontAwesome5, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons'; import { openCamera, openPicker } from 'react-native-image-crop-picker'; import { useActionSheet } from '@expo/react-native-action-sheet'; import { PERMISSIONS, request, requestNotifications, RESULTS } from 'react-native-permissions'; @@ -555,26 +555,42 @@ export default function Onboarding({ navigation }) { - - {'Reste à l\'affût !'} + + + {'Mode Radar'} + + {'Active le mode radar pour ne manquer aucun drop, même quand l\'application n\'est pas lancée !'} - - {'Ce mode utilise la géolocalisation en arrière plan.'} - - - en savoir plus - + + + + {'Ne consomme pas la batterie'} + + + + {'Ne dévoile pas ta position'} + + + + {'Détecte les drops pour toi'} + + + + + en savoir plus + + requestBackgroundGeolocationPermissions( + () => viewSliderRef.current?.goToView(8) + )} + text='Activer' + /> + - - requestBackgroundGeolocationPermissions( - () => viewSliderRef.current?.goToView(8) - )} - text='Activer' - /> @@ -597,10 +613,10 @@ export default function Onboarding({ navigation }) { ); } -const LoadingGlassButton = ({ loading, onPress, disabled, text }) => ( +const LoadingGlassButton = ({ loading, onPress, disabled, text, marginTopValue }) => ( {text ? ( @@ -641,7 +657,6 @@ const styles = StyleSheet.create({ paddingHorizontal: 20, paddingVertical: 10, marginBottom: 40, - marginTop: '10%', }, title: { ...Fonts.bold(20, Colors.darkGrey), @@ -653,5 +668,11 @@ const styles = StyleSheet.create({ marginTop: 10, textAlign: 'center', maxWidth: responsiveWidth(85), + marginBottom: 17, + }, + elementRadar: { + flexDirection: 'row', + alignItems: 'center', + marginBottom: 10, }, });