18 lines
533 B
JavaScript
18 lines
533 B
JavaScript
import React, { useState } from 'react'
|
|
import { } from 'react-native'
|
|
import Navigation from './Navigation/Navigation'
|
|
import { TokenContext, UsernameContext } from './Context/Context'
|
|
|
|
export default function App() {
|
|
const [token, setToken] = useState(null)
|
|
const [username, setUsername] = useState("")
|
|
|
|
return (
|
|
<UsernameContext.Provider value={[username, setUsername]}>
|
|
<TokenContext.Provider value={[token, setToken]}>
|
|
<Navigation />
|
|
</TokenContext.Provider>
|
|
</UsernameContext.Provider>
|
|
);
|
|
}
|