-
Notifications
You must be signed in to change notification settings - Fork 0
/
__App.tsx
31 lines (28 loc) · 846 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
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { ConvexProvider, ConvexReactClient } from "convex/react";
import "react-native-get-random-values";
import { CONVEX_URL } from "@env";
import { Button } from "react-native-paper";
const convex = new ConvexReactClient(CONVEX_URL, {
unsavedChangesWarning: false,
});
export default function App() {
return (
<ConvexProvider client={convex}>
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Button mode="contained">Sign Up</Button>
<StatusBar style="auto" />
</View>
</ConvexProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});