Installation de expo-secure-store pour stocker les données de connexion à l'API
This commit is contained in:
@ -45,6 +45,14 @@ export default function TabLayout() {
|
||||
tabBarIcon: ({ color }) => <MaterialIcons name="history" size={24} color={color} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="settings"
|
||||
options={{
|
||||
title: 'Paramètres',
|
||||
headerTitleStyle: {fontSize: 32},
|
||||
tabBarIcon: ({ color }) => <MaterialIcons name="settings" size={24} color={color} />,
|
||||
}}
|
||||
/>
|
||||
</Tabs>
|
||||
)
|
||||
}
|
||||
|
15
client/app/(tabs)/settings.tsx
Normal file
15
client/app/(tabs)/settings.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { FlatList, ScrollView } from 'react-native'
|
||||
import { ThemedText } from '@/components/ThemedText'
|
||||
import { ThemedView } from '@/components/ThemedView'
|
||||
// import * as SecureStore from 'expo-secure-store'
|
||||
|
||||
export default function HistoryScreen() {
|
||||
// const token = SecureStore.getItem("apiToken")
|
||||
return (
|
||||
<ScrollView>
|
||||
<ThemedView>
|
||||
<FlatList data={["Se connecter à l'API"]} renderItem={({item}) => <ThemedText>{item}</ThemedText>} />
|
||||
</ThemedView>
|
||||
</ScrollView>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user