-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
33 lines (29 loc) · 873 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
29
30
31
32
33
import "./src/styles/styles.css"
import React from "react"
import { StyleSheet, View } from "react-native"
import ChatInterface from "./src/components/ChatInterface"
import { Provider } from "react-redux"
import { store, persistor } from "./src/redux/store"
import { PersistGate } from "redux-persist/integration/react"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
const queryClient = new QueryClient()
function App() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<QueryClientProvider client={queryClient}>
<View style={styles.root}>
<ChatInterface />
</View>
</QueryClientProvider>
</PersistGate>
</Provider>
)
}
const styles = StyleSheet.create({
root: {
flex: 1,
backgroundColor: "#fff",
},
})
export default App