todosLists/App.js

18 lines
533 B
JavaScript
Raw Normal View History

2022-02-11 08:58:55 +01:00
import React, { useState } from 'react'
import { } from 'react-native'
import Navigation from './Navigation/Navigation'
import { TokenContext, UsernameContext } from './Context/Context'
2022-02-10 15:48:01 +01:00
export default function App() {
2022-02-11 08:58:55 +01:00
const [token, setToken] = useState(null)
const [username, setUsername] = useState("")
2022-02-10 15:48:01 +01:00
return (
2022-02-11 08:58:55 +01:00
<UsernameContext.Provider value={[username, setUsername]}>
<TokenContext.Provider value={[token, setToken]}>
<Navigation />
</TokenContext.Provider>
</UsernameContext.Provider>
2022-02-10 15:48:01 +01:00
);
}