-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (21 loc) · 810 Bytes
/
App.tsx
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 './global.css'
import './gesture-handler'
import {GestureHandlerRootView} from 'react-native-gesture-handler'
import {DevToolsBubble} from 'react-native-react-query-devtools'
import {QueryClient, QueryClientProvider} from '@tanstack/react-query'
import StackNavigation from './src/navi/StackNavigation'
import {useBubbleVisibileStore} from './src/store/useBubbleVisibileStore'
function App(): React.JSX.Element {
console.log('APP START !!!')
const queryClient = new QueryClient()
const showBubble = useBubbleVisibileStore()
return (
<QueryClientProvider client={queryClient}>
<GestureHandlerRootView className="flex-1">
<StackNavigation />
</GestureHandlerRootView>
{showBubble.show && <DevToolsBubble />}
</QueryClientProvider>
)
}
export default App