Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions src/screens/Onboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -555,19 +555,30 @@ export default function Onboarding({ navigation }) {
</View>

<View style={styles.view}>
<View style={{ marginBottom: 30, ...Styles.center }}>
<Text style={styles.title}>{'Reste à l\'affût !'}</Text>
<View style={{ ...Styles.center }}>
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<Text style={{ ...styles.title, marginRight: 10 }}>{'Mode Radar'}</Text>
<MaterialCommunityIcons name='radar' size={30} color={Colors.mainBlue}/>
</View>
<Text style={styles.subtitle}>
{'Active le mode radar pour ne manquer aucun drop, même quand l\'application n\'est pas lancée !'}
</Text>
<Text style={{ ...styles.subtitle, ...Fonts.regular(10.5, Colors.grey), marginVertical: 3 }}>
{'Ce mode utilise la géolocalisation en arrière plan.'}
</Text>
<View style={styles.list}>
<View style={{ alignItems: 'center' }}>
<FontAwesome name='battery-full' size={24} style={{ color: Colors.purple1, paddingVertical: 3 }}/>
<FontAwesome5 name='shield-alt' size={24} style={{ color: Colors.purple1, paddingVertical: 3 }}/>
<MaterialCommunityIcons name='bell-ring' size={24} style={{ color: Colors.purple1, paddingVertical: 3 }}/>
</View>
<View style={{ paddingHorizontal: 10 }}>
<Text style={{ ...Fonts.bold(13, Colors.purple1), paddingVertical: 5 }}>{'Ne consomme pas la batterie'}</Text>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce que "Ne consomme pas plus de batterie" ne serait pas mieux ? (c'est un détail)

<Text style={{ ...Fonts.bold(13, Colors.purple1), paddingVertical: 5 }}>{'Ne dévoile pas ta position'}</Text>
<Text style={{ ...Fonts.bold(13, Colors.purple1), paddingVertical: 5 }}>{'Détecte les drops pour toi'}</Text>
</View>
</View>
<TouchableOpacity>
<Text style={{ ...Fonts.regular(13, '#44a0eb'), marginTop: 5, textDecorationLine: 'underline' }}>en savoir plus</Text>
</TouchableOpacity>
</View>
<MaterialCommunityIcons name='radar' size={50} color={Colors.grey} />
<LoadingGlassButton
loading={loading}
onPress={() => requestBackgroundGeolocationPermissions(
Expand Down Expand Up @@ -653,5 +664,11 @@ const styles = StyleSheet.create({
marginTop: 10,
textAlign: 'center',
maxWidth: responsiveWidth(85),
marginBottom: 17,
},
list: {
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'space-between',
},
});