-
-
Save claysimps/bc943ad58e6bf0e7abd0635965537d22 to your computer and use it in GitHub Desktop.
SecureStore Step 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {SafeAreaView, StyleSheet, StatusBar, Button, Text} from 'react-native'; | |
export enum SecureStoreEnum { | |
TOKEN = 'token', | |
} | |
const App = () => { | |
const [token, setToken] = useState<string>(''); | |
const fakeToken = 'A fake token 🍪'; | |
return ( | |
<> | |
<StatusBar barStyle="dark-content" /> | |
<SafeAreaView style={styles.container}> | |
<Button title="set token" onPress={() => {}} /> | |
<Button title="get token" onPress={() => {}} /> | |
<Button title="delete token" onPress={() => {}} /> | |
<Text>{token}</Text> | |
</SafeAreaView> | |
</> | |
); | |
}; | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
justifyContent: 'center', | |
alignItems: 'center', | |
}, | |
}); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment