Installation de expo-secure-store pour stocker les données de connexion à l'API

This commit is contained in:
2024-12-09 18:29:48 +01:00
parent 4a4233925d
commit c08fbb762a
6 changed files with 38 additions and 3 deletions

View 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>
)
}