-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
25 lines (22 loc) · 691 Bytes
/
Copy pathApp.tsx
File metadata and controls
25 lines (22 loc) · 691 Bytes
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
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { usePushNotifications } from "./usePushNotifications";
export default function App() {
const { expoPushToken, notification } = usePushNotifications();
const data = JSON.stringify(notification, undefined, 2);
return (
<View style={styles.container}>
<Text>Open up App.tsx to start working on your app!</Text>
<Text>Token: {expoPushToken?.data ?? ""}</Text>
<Text>{data}</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});