From bb73f5ee037d61d7e91a4ea1e96ef36de84c0854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20ade?= Date: Tue, 3 Jan 2023 22:38:47 +0100 Subject: [PATCH 1/5] Add Advertisment Radar mode on Onboarding --- src/screens/Onboarding.js | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 85c1fb8..0c957b7 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,19 +555,30 @@ 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.'} - + + + + + + + + {'Ne consomme pas la batterie'} + {'Ne dévoile pas ta position'} + {'Détecte les drops pour toi'} + + en savoir plus - requestBackgroundGeolocationPermissions( @@ -653,5 +664,16 @@ const styles = StyleSheet.create({ marginTop: 10, textAlign: 'center', maxWidth: responsiveWidth(85), + marginBottom: 30, + }, + line: { + flexDirection: 'row', + alignItems: 'center', + marginVertical: 3, + }, + test: { + flexDirection: 'row', + flexWrap: 'wrap', + justifyContent: 'space-between', }, }); From 721e9621adfd3bb2c1797acfd0b663879f5e3104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20ade?= Date: Tue, 3 Jan 2023 22:44:08 +0100 Subject: [PATCH 2/5] Remove unused things --- src/screens/Onboarding.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 0c957b7..492fc89 100644 --- a/src/screens/Onboarding.js +++ b/src/screens/Onboarding.js @@ -556,14 +556,14 @@ export default function Onboarding({ navigation }) { - + {'Mode Radar'} {'Active le mode radar pour ne manquer aucun drop, même quand l\'application n\'est pas lancée !'} - + @@ -666,12 +666,7 @@ const styles = StyleSheet.create({ maxWidth: responsiveWidth(85), marginBottom: 30, }, - line: { - flexDirection: 'row', - alignItems: 'center', - marginVertical: 3, - }, - test: { + list: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'space-between', From 21f92289372e7e8d4aa94926df17ccf2082da2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20ade?= Date: Tue, 3 Jan 2023 22:47:43 +0100 Subject: [PATCH 3/5] mini fix --- src/screens/Onboarding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 492fc89..9f12998 100644 --- a/src/screens/Onboarding.js +++ b/src/screens/Onboarding.js @@ -664,7 +664,7 @@ const styles = StyleSheet.create({ marginTop: 10, textAlign: 'center', maxWidth: responsiveWidth(85), - marginBottom: 30, + marginBottom: 17, }, list: { flexDirection: 'row', From 85c7299a7e0c43030dff123a147b18095cc8e60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20ade?= Date: Wed, 1 Feb 2023 23:27:04 +0100 Subject: [PATCH 4/5] WIP --- src/screens/Onboarding.js | 50 +++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 9f12998..7f56272 100644 --- a/src/screens/Onboarding.js +++ b/src/screens/Onboarding.js @@ -564,28 +564,31 @@ export default function Onboarding({ navigation }) { {'Active le mode radar pour ne manquer aucun drop, même quand l\'application n\'est pas lancée !'} - - - - + + + {'Ne consomme pas la batterie'} - - {'Ne consomme pas la batterie'} - {'Ne dévoile pas ta position'} - {'Détecte les drops pour toi'} + + + {'Ne dévoile pas ta position'} + + + + {'Détecte les drops pour toi'} - en savoir plus + en savoir plus + requestBackgroundGeolocationPermissions( + () => viewSliderRef.current?.goToView(8) + )} + text='Activer' + /> - requestBackgroundGeolocationPermissions( - () => viewSliderRef.current?.goToView(8) - )} - text='Activer' - /> @@ -608,10 +611,10 @@ export default function Onboarding({ navigation }) { ); } -const LoadingGlassButton = ({ loading, onPress, disabled, text }) => ( +const LoadingGlassButton = ({ loading, onPress, disabled, text, style }) => ( {text ? ( @@ -666,9 +669,14 @@ const styles = StyleSheet.create({ maxWidth: responsiveWidth(85), marginBottom: 17, }, - list: { + elementRadar: { flexDirection: 'row', - flexWrap: 'wrap', - justifyContent: 'space-between', + alignItems: 'center', + marginBottom: 10, }, + buttonRadar: { + paddingHorizontal: 20, + paddingVertical: 10, + marginBottom: 40, + } }); From 82d450677320406c912a8130c2790ae4fe06436b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20ade?= Date: Wed, 8 Feb 2023 21:03:02 +0100 Subject: [PATCH 5/5] WIP --- src/screens/Onboarding.js | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/src/screens/Onboarding.js b/src/screens/Onboarding.js index 7f56272..dfac0b3 100644 --- a/src/screens/Onboarding.js +++ b/src/screens/Onboarding.js @@ -577,17 +577,19 @@ export default function Onboarding({ navigation }) { {'Détecte les drops pour toi'} - - en savoir plus - - requestBackgroundGeolocationPermissions( - () => viewSliderRef.current?.goToView(8) - )} - text='Activer' - /> + + + en savoir plus + + requestBackgroundGeolocationPermissions( + () => viewSliderRef.current?.goToView(8) + )} + text='Activer' + /> + @@ -611,10 +613,10 @@ export default function Onboarding({ navigation }) { ); } -const LoadingGlassButton = ({ loading, onPress, disabled, text, style }) => ( +const LoadingGlassButton = ({ loading, onPress, disabled, text, marginTopValue }) => ( {text ? ( @@ -655,7 +657,6 @@ const styles = StyleSheet.create({ paddingHorizontal: 20, paddingVertical: 10, marginBottom: 40, - marginTop: '10%', }, title: { ...Fonts.bold(20, Colors.darkGrey), @@ -674,9 +675,4 @@ const styles = StyleSheet.create({ alignItems: 'center', marginBottom: 10, }, - buttonRadar: { - paddingHorizontal: 20, - paddingVertical: 10, - marginBottom: 40, - } });