-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
28 lines (25 loc) · 665 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 "react-native-gesture-handler"
import React from "react"
import { AuthContextProvider } from "@/contexts/auth"
import { Routes } from "@/routes"
import { StatusBar } from "react-native"
import * as Notifications from "expo-notifications"
import { ThemeProvider } from "@shopify/restyle"
import theme from "@/theme"
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: false,
shouldSetBadge: false,
}),
})
export default function App() {
return (
<AuthContextProvider>
<StatusBar />
<ThemeProvider theme={theme}>
<Routes />
</ThemeProvider>
</AuthContextProvider>
)
}