-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (25 loc) · 870 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { NavigationContainer } from '@react-navigation/native';
import LoginRouter from './router/LoginRouter/LoginRouter';
import { CLERK_PUBLISHABLE_KEY } from "@env"
import { ClerkProvider, SignedIn, SignedOut } from '@clerk/clerk-expo';
import HomeRouter from './router/HomeRouter/HomeRouter';
import tokenCache from './clerk/tokenCache';
import { Provider } from 'react-redux';
import store from './redux/app/store';
import 'react-native-gesture-handler';
export default function App() {
return (
<Provider store={store}>
<ClerkProvider tokenCache={tokenCache} publishableKey={CLERK_PUBLISHABLE_KEY}>
<NavigationContainer>
<SignedIn>
<HomeRouter />
</SignedIn>
<SignedOut>
<LoginRouter />
</SignedOut>
</NavigationContainer>
</ClerkProvider>
</Provider>
);
}