todosLists/App.js
2022-02-11 08:58:55 +01:00

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