create-croissant 0.1.44 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/template/.expo/README.md +13 -0
  3. package/template/.expo/devices.json +3 -0
  4. package/template/apps/desktop/.eslintcache +1 -0
  5. package/template/apps/mobile/app/(tabs)/_layout.tsx +21 -14
  6. package/template/apps/mobile/app/(tabs)/account.tsx +147 -0
  7. package/template/apps/mobile/app/(tabs)/explore.tsx +334 -104
  8. package/template/apps/mobile/app/(tabs)/index.tsx +99 -97
  9. package/template/apps/mobile/app/_layout.tsx +26 -7
  10. package/template/apps/mobile/app/index.tsx +136 -0
  11. package/template/apps/mobile/app/login.tsx +135 -0
  12. package/template/apps/mobile/app/signup.tsx +144 -0
  13. package/template/apps/mobile/app.json +3 -3
  14. package/template/apps/mobile/components/ui/button.tsx +86 -0
  15. package/template/apps/mobile/components/ui/input.tsx +56 -0
  16. package/template/apps/mobile/lib/orpc.ts +23 -0
  17. package/template/apps/mobile/package.json +13 -1
  18. package/template/apps/mobile/tsconfig.json +4 -1
  19. package/template/apps/platform/package.json +2 -1
  20. package/template/apps/platform/src/components/login-form.tsx +5 -4
  21. package/template/apps/platform/src/components/signup-form.tsx +12 -16
  22. package/template/apps/platform/src/routes/__root.tsx +6 -2
  23. package/template/apps/platform/src/routes/_auth/account.tsx +13 -17
  24. package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +2 -6
  25. package/template/apps/platform/src/routes/_public/examples/client-orpc.tsx +16 -29
  26. package/template/apps/platform/src/routes/_public/examples/ssr-orpc.tsx +10 -14
  27. package/template/apps/platform/src/routes/api/auth/$.ts +23 -2
  28. package/template/apps/platform/src/routes/api/rpc.$.ts +18 -0
  29. package/template/package.json +2 -2
  30. package/template/packages/orpc/package.json +7 -1
  31. package/template/packages/orpc/src/lib/planets.ts +18 -18
  32. package/template/packages/orpc/src/lib/router.ts +3 -3
  33. package/template/packages/orpc/src/react/context.tsx +23 -0
  34. package/template/packages/orpc/src/react/general.ts +29 -0
  35. package/template/packages/orpc/src/react/index.ts +3 -0
  36. package/template/packages/orpc/src/react/planets.ts +90 -0
  37. package/template/tsconfig.json +2 -1
  38. package/template/apps/mobile/app/modal.tsx +0 -29
@@ -1,114 +1,344 @@
1
- import { Image } from "expo-image";
2
- import { Platform, StyleSheet } from "react-native";
3
-
4
- import { Collapsible } from "@/components/ui/collapsible";
5
- import { ExternalLink } from "@/components/external-link";
6
- import ParallaxScrollView from "@/components/parallax-scroll-view";
7
- import { ThemedText } from "@/components/themed-text";
8
- import { ThemedView } from "@/components/themed-view";
9
- import { IconSymbol } from "@/components/ui/icon-symbol";
10
- import { Fonts } from "@/constants/theme";
11
-
12
- export default function TabTwoScreen() {
13
- return (
14
- <ParallaxScrollView
15
- headerBackgroundColor={{ light: "#D0D0D0", dark: "#353636" }}
16
- headerImage={
17
- <IconSymbol
18
- size={310}
19
- color="#808080"
20
- name="chevron.left.forwardslash.chevron.right"
21
- style={styles.headerImage}
22
- />
1
+ import { useState } from "react";
2
+ import {
3
+ Alert,
4
+ FlatList,
5
+ Modal,
6
+ StyleSheet,
7
+ Text,
8
+ View,
9
+ ActivityIndicator,
10
+ ScrollView,
11
+ } from "react-native";
12
+ import { useQueryClient } from "@tanstack/react-query";
13
+ import { useForm } from "@tanstack/react-form";
14
+ import { z } from "zod";
15
+ import { Button } from "@/components/ui/button";
16
+ import { Input } from "@/components/ui/input";
17
+ import { usePlanets, useCreatePlanet, useUpdatePlanet, useDeletePlanet } from "@workspace/orpc/react";
18
+
19
+ const planetSchema = z.object({
20
+ name: z.string().min(1, "Name is required"),
21
+ description: z.string(),
22
+ distance: z.string().refine((val) => !isNaN(parseFloat(val)), {
23
+ message: "Must be a number",
24
+ }),
25
+ diameter: z.string().refine((val) => !isNaN(parseFloat(val)), {
26
+ message: "Must be a number",
27
+ }),
28
+ });
29
+
30
+ export default function ExploreScreen() {
31
+ const [modalVisible, setModalVisible] = useState(false);
32
+ const [editingId, setEditingId] = useState<number | null>(null);
33
+
34
+ const { data: planets = [], isLoading } = usePlanets();
35
+
36
+ const form = useForm({
37
+ defaultValues: {
38
+ name: "",
39
+ description: "",
40
+ distance: "0",
41
+ diameter: "0",
42
+ },
43
+ validators: {
44
+ onChange: planetSchema,
45
+ },
46
+ onSubmit: async ({ value }) => {
47
+ const payload = {
48
+ name: value.name,
49
+ description: value.description || undefined,
50
+ distanceFromSun: parseFloat(value.distance) || 0,
51
+ diameter: parseFloat(value.diameter) || 0,
52
+ hasRings: false,
53
+ };
54
+
55
+ try {
56
+ if (editingId) {
57
+ await updateMutation.mutateAsync({ id: editingId, ...payload });
58
+ } else {
59
+ await createMutation.mutateAsync(payload);
60
+ }
61
+ closeModal();
62
+ } catch (err) {
63
+ // Error handled in mutation callbacks
23
64
  }
24
- >
25
- <ThemedView style={styles.titleContainer}>
26
- <ThemedText
27
- type="title"
28
- style={{
29
- fontFamily: Fonts.rounded,
30
- }}
31
- >
32
- Explore
33
- </ThemedText>
34
- </ThemedView>
35
- <ThemedText>This app includes example code to help you get started.</ThemedText>
36
- <Collapsible title="File-based routing">
37
- <ThemedText>
38
- This app has two screens:{" "}
39
- <ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> and{" "}
40
- <ThemedText type="defaultSemiBold">app/(tabs)/explore.tsx</ThemedText>
41
- </ThemedText>
42
- <ThemedText>
43
- The layout file in <ThemedText type="defaultSemiBold">app/(tabs)/_layout.tsx</ThemedText>{" "}
44
- sets up the tab navigator.
45
- </ThemedText>
46
- <ExternalLink href="https://docs.expo.dev/router/introduction">
47
- <ThemedText type="link">Learn more</ThemedText>
48
- </ExternalLink>
49
- </Collapsible>
50
- <Collapsible title="Android, iOS, and web support">
51
- <ThemedText>
52
- You can open this project on Android, iOS, and the web. To open the web version, press{" "}
53
- <ThemedText type="defaultSemiBold">w</ThemedText> in the terminal running this project.
54
- </ThemedText>
55
- </Collapsible>
56
- <Collapsible title="Images">
57
- <ThemedText>
58
- For static images, you can use the <ThemedText type="defaultSemiBold">@2x</ThemedText> and{" "}
59
- <ThemedText type="defaultSemiBold">@3x</ThemedText> suffixes to provide files for
60
- different screen densities
61
- </ThemedText>
62
- <Image
63
- source={require("@/assets/images/react-logo.png")}
64
- style={{ width: 100, height: 100, alignSelf: "center" }}
65
- />
66
- <ExternalLink href="https://reactnative.dev/docs/images">
67
- <ThemedText type="link">Learn more</ThemedText>
68
- </ExternalLink>
69
- </Collapsible>
70
- <Collapsible title="Light and dark mode components">
71
- <ThemedText>
72
- This template has light and dark mode support. The{" "}
73
- <ThemedText type="defaultSemiBold">useColorScheme()</ThemedText> hook lets you inspect
74
- what the user&apos;s current color scheme is, and so you can adjust UI colors accordingly.
75
- </ThemedText>
76
- <ExternalLink href="https://docs.expo.dev/develop/user-interface/color-themes/">
77
- <ThemedText type="link">Learn more</ThemedText>
78
- </ExternalLink>
79
- </Collapsible>
80
- <Collapsible title="Animations">
81
- <ThemedText>
82
- This template includes an example of an animated component. The{" "}
83
- <ThemedText type="defaultSemiBold">components/HelloWave.tsx</ThemedText> component uses
84
- the powerful{" "}
85
- <ThemedText type="defaultSemiBold" style={{ fontFamily: Fonts.mono }}>
86
- react-native-reanimated
87
- </ThemedText>{" "}
88
- library to create a waving hand animation.
89
- </ThemedText>
90
- {Platform.select({
91
- ios: (
92
- <ThemedText>
93
- The <ThemedText type="defaultSemiBold">components/ParallaxScrollView.tsx</ThemedText>{" "}
94
- component provides a parallax effect for the header image.
95
- </ThemedText>
96
- ),
97
- })}
98
- </Collapsible>
99
- </ParallaxScrollView>
65
+ },
66
+ });
67
+
68
+ const resetForm = () => {
69
+ form.reset();
70
+ setEditingId(null);
71
+ };
72
+
73
+ const createMutation = useCreatePlanet({
74
+ onSuccess: () => {
75
+ Alert.alert("Success", "Planet added successfully");
76
+ },
77
+ onError: (err) => {
78
+ Alert.alert("Error", err.message || "Failed to add planet");
79
+ },
80
+ });
81
+
82
+ const updateMutation = useUpdatePlanet({
83
+ onSuccess: () => {
84
+ Alert.alert("Success", "Planet updated successfully");
85
+ },
86
+ onError: (err) => {
87
+ Alert.alert("Error", err.message || "Failed to update planet");
88
+ },
89
+ });
90
+
91
+ const deleteMutation = useDeletePlanet({
92
+ onSuccess: () => {
93
+ Alert.alert("Success", "Planet deleted successfully");
94
+ },
95
+ onError: (err) => {
96
+ Alert.alert("Error", err.message || "Failed to delete planet");
97
+ },
98
+ });
99
+
100
+ const handleEdit = (planet: any) => {
101
+ setEditingId(planet.id);
102
+ form.setFieldValue("name", planet.name);
103
+ form.setFieldValue("description", planet.description || "");
104
+ form.setFieldValue("distance", planet.distanceFromSun.toString());
105
+ form.setFieldValue("diameter", planet.diameter.toString());
106
+ setModalVisible(true);
107
+ };
108
+
109
+ const handleDelete = (id: number) => {
110
+ deleteMutation.mutateAsync({id})
111
+ };
112
+
113
+ const closeModal = () => {
114
+ setModalVisible(false);
115
+ resetForm();
116
+ };
117
+
118
+ if (isLoading) {
119
+ return (
120
+ <View style={styles.center}>
121
+ <ActivityIndicator size="large" color="#000" />
122
+ </View>
123
+ );
124
+ }
125
+
126
+ return (
127
+ <View style={styles.container}>
128
+ <FlatList
129
+ data={planets}
130
+ keyExtractor={(item) => item.id.toString()}
131
+ contentContainerStyle={styles.listContent}
132
+ renderItem={({ item }) => (
133
+ <View style={styles.planetCard}>
134
+ <View style={styles.planetInfo}>
135
+ <Text style={styles.planetName}>{item.name}</Text>
136
+ <Text style={styles.planetDesc}>{item.description}</Text>
137
+ <Text style={styles.planetDetails}>
138
+ Distance: {item.distanceFromSun} AU • Diameter: {item.diameter} km
139
+ </Text>
140
+ </View>
141
+ <View style={styles.actions}>
142
+ <Button
143
+ variant="outline"
144
+ onPress={() => handleEdit(item)}
145
+ style={styles.actionBtn}
146
+ >
147
+ Edit
148
+ </Button>
149
+ <Button
150
+ variant="destructive"
151
+ onPress={() => handleDelete(item.id)}
152
+ style={styles.actionBtn}
153
+ >
154
+ Delete
155
+ </Button>
156
+ </View>
157
+ </View>
158
+ )}
159
+ ListEmptyComponent={
160
+ <Text style={styles.emptyText}>No planets found. Add one!</Text>
161
+ }
162
+ />
163
+
164
+ <Button
165
+ onPress={() => setModalVisible(true)}
166
+ style={styles.fab}
167
+ >
168
+ Add Planet
169
+ </Button>
170
+
171
+ <Modal
172
+ visible={modalVisible}
173
+ animationType="slide"
174
+ onRequestClose={closeModal}
175
+ >
176
+ <View style={styles.modalContainer}>
177
+ <ScrollView contentContainerStyle={styles.modalContent}>
178
+ <Text style={styles.modalTitle}>
179
+ {editingId ? "Edit Planet" : "Add New Planet"}
180
+ </Text>
181
+
182
+ <form.Field name="name">
183
+ {(field: any) => (
184
+ <Input
185
+ label="Name"
186
+ value={field.state.value}
187
+ onChangeText={field.handleChange}
188
+ placeholder="Earth"
189
+ error={field.state.meta.errors?.[0]?.toString()}
190
+ />
191
+ )}
192
+ </form.Field>
193
+
194
+ <form.Field name="description">
195
+ {(field: any) => (
196
+ <Input
197
+ label="Description"
198
+ value={field.state.value}
199
+ onChangeText={field.handleChange}
200
+ placeholder="The blue planet"
201
+ />
202
+ )}
203
+ </form.Field>
204
+
205
+ <form.Field name="distance">
206
+ {(field: any) => (
207
+ <Input
208
+ label="Distance from Sun (AU)"
209
+ value={field.state.value}
210
+ onChangeText={field.handleChange}
211
+ keyboardType="numeric"
212
+ error={field.state.meta.errors?.[0]?.toString()}
213
+ />
214
+ )}
215
+ </form.Field>
216
+
217
+ <form.Field name="diameter">
218
+ {(field: any) => (
219
+ <Input
220
+ label="Diameter (km)"
221
+ value={field.state.value}
222
+ onChangeText={field.handleChange}
223
+ keyboardType="numeric"
224
+ error={field.state.meta.errors?.[0]?.toString()}
225
+ />
226
+ )}
227
+ </form.Field>
228
+
229
+ <View style={styles.modalActions}>
230
+ <Button
231
+ variant="outline"
232
+ onPress={closeModal}
233
+ style={styles.modalBtn}
234
+ >
235
+ Cancel
236
+ </Button>
237
+ <Button
238
+ onPress={form.handleSubmit}
239
+ loading={createMutation.isPending || updateMutation.isPending}
240
+ style={styles.modalBtn}
241
+ >
242
+ {editingId ? "Update" : "Create"}
243
+ </Button>
244
+ </View>
245
+ </ScrollView>
246
+ </View>
247
+ </Modal>
248
+ </View>
100
249
  );
101
250
  }
102
251
 
103
252
  const styles = StyleSheet.create({
104
- headerImage: {
105
- color: "#808080",
106
- bottom: -90,
107
- left: -35,
108
- position: "absolute",
253
+ container: {
254
+ flex: 1,
255
+ backgroundColor: "#fff",
256
+ },
257
+ center: {
258
+ flex: 1,
259
+ justifyContent: "center",
260
+ alignItems: "center",
261
+ },
262
+ listContent: {
263
+ padding: 16,
264
+ paddingBottom: 100,
265
+ },
266
+ planetCard: {
267
+ padding: 16,
268
+ borderRadius: 12,
269
+ borderWidth: 1,
270
+ borderColor: "#eee",
271
+ marginBottom: 16,
272
+ backgroundColor: "#fff",
273
+ shadowColor: "#000",
274
+ shadowOffset: { width: 0, height: 2 },
275
+ shadowOpacity: 0.05,
276
+ shadowRadius: 4,
277
+ elevation: 2,
278
+ },
279
+ planetInfo: {
280
+ marginBottom: 16,
281
+ },
282
+ planetName: {
283
+ fontSize: 18,
284
+ fontWeight: "bold",
285
+ marginBottom: 4,
286
+ },
287
+ planetDesc: {
288
+ fontSize: 14,
289
+ color: "#666",
290
+ marginBottom: 8,
291
+ },
292
+ planetDetails: {
293
+ fontSize: 12,
294
+ color: "#999",
109
295
  },
110
- titleContainer: {
296
+ actions: {
111
297
  flexDirection: "row",
112
298
  gap: 8,
113
299
  },
300
+ actionBtn: {
301
+ flex: 1,
302
+ height: 36,
303
+ },
304
+ emptyText: {
305
+ textAlign: "center",
306
+ marginTop: 40,
307
+ color: "#999",
308
+ fontStyle: "italic",
309
+ },
310
+ fab: {
311
+ position: "absolute",
312
+ bottom: 24,
313
+ left: 24,
314
+ right: 24,
315
+ height: 56,
316
+ borderRadius: 28,
317
+ shadowColor: "#000",
318
+ shadowOffset: { width: 0, height: 4 },
319
+ shadowOpacity: 0.2,
320
+ shadowRadius: 8,
321
+ elevation: 5,
322
+ },
323
+ modalContainer: {
324
+ flex: 1,
325
+ backgroundColor: "#fff",
326
+ },
327
+ modalContent: {
328
+ padding: 24,
329
+ paddingTop: 60,
330
+ },
331
+ modalTitle: {
332
+ fontSize: 24,
333
+ fontWeight: "bold",
334
+ marginBottom: 32,
335
+ },
336
+ modalActions: {
337
+ flexDirection: "row",
338
+ gap: 12,
339
+ marginTop: 32,
340
+ },
341
+ modalBtn: {
342
+ flex: 1,
343
+ },
114
344
  });
@@ -1,114 +1,116 @@
1
- import { Image } from "expo-image";
2
- import { Platform, StyleSheet } from "react-native";
3
-
4
- import { HelloWave } from "@/components/hello-wave";
5
- import ParallaxScrollView from "@/components/parallax-scroll-view";
6
- import { ThemedText } from "@/components/themed-text";
7
- import { ThemedView } from "@/components/themed-view";
8
- import { Link } from "expo-router";
1
+ import { useEffect, useState } from "react";
2
+ import { View, Text, StyleSheet, ScrollView, TouchableOpacity, Platform } from "react-native";
3
+ import { useRouter } from "expo-router";
9
4
  import { authClient } from "@/lib/auth-client";
5
+ import { orpc } from "@/lib/orpc";
6
+ import { Button } from "@/components/ui/button";
10
7
 
11
- export default function HomeScreen() {
8
+ export default function DashboardScreen() {
9
+ const router = useRouter();
12
10
  const { data: session, isPending } = authClient.useSession();
11
+ const [secretData, setSecretData] = useState<string>("");
12
+ const [loadingSecret, setLoadingSecret] = useState(false);
13
13
 
14
- return (
15
- <ParallaxScrollView
16
- headerBackgroundColor={{ light: "#A1CEDC", dark: "#1D3D47" }}
17
- headerImage={
18
- <Image
19
- source={require("@/assets/images/partial-react-logo.png")}
20
- style={styles.reactLogo}
21
- />
22
- }
23
- >
24
- <ThemedView style={styles.titleContainer}>
25
- <ThemedText type="title">Welcome!</ThemedText>
26
- <HelloWave />
27
- </ThemedView>
14
+ useEffect(() => {
15
+ if (!isPending && !session) {
16
+ router.replace("/login");
17
+ return;
18
+ }
19
+
20
+ if (session) {
21
+ const fetchSecret = async () => {
22
+ setLoadingSecret(true);
23
+ try {
24
+ const res = await orpc.getSecretData();
25
+ setSecretData(res.secret);
26
+ } catch (err: any) {
27
+ setSecretData("Error: " + (err.message || "Unknown error"));
28
+ } finally {
29
+ setLoadingSecret(false);
30
+ }
31
+ };
32
+
33
+ fetchSecret();
34
+ }
35
+ }, [session, isPending, router]);
28
36
 
29
- <ThemedView style={styles.stepContainer}>
30
- <ThemedText type="subtitle">Auth Status</ThemedText>
31
- {isPending ? (
32
- <ThemedText>Checking session...</ThemedText>
33
- ) : session ? (
34
- <ThemedText>Logged in as: {session.user.email}</ThemedText>
35
- ) : (
36
- <ThemedText>Not logged in</ThemedText>
37
- )}
38
- </ThemedView>
37
+ const handleSignOut = async () => {
38
+ await authClient.signOut();
39
+ router.replace("/");
40
+ };
39
41
 
40
- <ThemedView style={styles.stepContainer}>
41
- <ThemedText type="subtitle">Step 1: Try it</ThemedText>
42
- <ThemedText>
43
- Edit <ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> to see changes.
44
- Press{" "}
45
- <ThemedText type="defaultSemiBold">
46
- {Platform.select({
47
- ios: "cmd + d",
48
- android: "cmd + m",
49
- web: "F12",
50
- })}
51
- </ThemedText>{" "}
52
- to open developer tools.
53
- </ThemedText>
54
- </ThemedView>
55
- <ThemedView style={styles.stepContainer}>
56
- <Link href="/modal">
57
- <Link.Trigger>
58
- <ThemedText type="subtitle">Step 2: Explore</ThemedText>
59
- </Link.Trigger>
60
- <Link.Preview />
61
- <Link.Menu>
62
- <Link.MenuAction title="Action" icon="cube" onPress={() => alert("Action pressed")} />
63
- <Link.MenuAction
64
- title="Share"
65
- icon="square.and.arrow.up"
66
- onPress={() => alert("Share pressed")}
67
- />
68
- <Link.Menu title="More" icon="ellipsis">
69
- <Link.MenuAction
70
- title="Delete"
71
- icon="trash"
72
- destructive
73
- onPress={() => alert("Delete pressed")}
74
- />
75
- </Link.Menu>
76
- </Link.Menu>
77
- </Link>
42
+ if (isPending) {
43
+ return (
44
+ <View style={styles.center}>
45
+ <Text>Loading dashboard...</Text>
46
+ </View>
47
+ );
48
+ }
78
49
 
79
- <ThemedText>
80
- {`Tap the Explore tab to learn more about what's included in this starter app.`}
81
- </ThemedText>
82
- </ThemedView>
83
- <ThemedView style={styles.stepContainer}>
84
- <ThemedText type="subtitle">Step 3: Get a fresh start</ThemedText>
85
- <ThemedText>
86
- {`When you're ready, run `}
87
- <ThemedText type="defaultSemiBold">npm run reset-project</ThemedText> to get a fresh{" "}
88
- <ThemedText type="defaultSemiBold">app</ThemedText> directory. This will move the current{" "}
89
- <ThemedText type="defaultSemiBold">app</ThemedText> to{" "}
90
- <ThemedText type="defaultSemiBold">app-example</ThemedText>.
91
- </ThemedText>
92
- </ThemedView>
93
- </ParallaxScrollView>
50
+ return (
51
+ <ScrollView style={styles.container} contentContainerStyle={styles.content}>
52
+ <Text style={styles.title}>Dashboard</Text>
53
+ <Text style={styles.welcome}>Welcome, {session?.user?.name}!</Text>
54
+ <Text style={styles.description}>
55
+ This is a protected page. Only authenticated users can see this.
56
+ </Text>
57
+
58
+ <View style={styles.secureBox}>
59
+ <Text style={styles.secureTitle}>Secure oRPC Data:</Text>
60
+ <Text style={styles.secureContent}>{secretData}</Text>
61
+ </View>
62
+
63
+ <Button variant="destructive" onPress={handleSignOut} style={styles.signOutBtn}>
64
+ Sign Out
65
+ </Button>
66
+ </ScrollView>
94
67
  );
95
68
  }
96
69
 
97
70
  const styles = StyleSheet.create({
98
- titleContainer: {
99
- flexDirection: "row",
71
+ container: {
72
+ flex: 1,
73
+ backgroundColor: "#fff",
74
+ },
75
+ content: {
76
+ padding: 24,
77
+ },
78
+ center: {
79
+ flex: 1,
80
+ justifyContent: "center",
100
81
  alignItems: "center",
101
- gap: 8,
102
82
  },
103
- stepContainer: {
104
- gap: 8,
83
+ title: {
84
+ fontSize: 28,
85
+ fontWeight: "bold",
86
+ marginBottom: 8,
87
+ },
88
+ welcome: {
89
+ fontSize: 18,
90
+ marginBottom: 8,
91
+ },
92
+ description: {
93
+ fontSize: 14,
94
+ color: "#666",
95
+ marginBottom: 24,
96
+ },
97
+ secureBox: {
98
+ padding: 16,
99
+ backgroundColor: "#f9f9f9",
100
+ borderRadius: 8,
101
+ borderWidth: 1,
102
+ borderColor: "#eee",
103
+ marginBottom: 24,
104
+ },
105
+ secureTitle: {
106
+ fontWeight: "600",
105
107
  marginBottom: 8,
106
108
  },
107
- reactLogo: {
108
- height: 178,
109
- width: 290,
110
- bottom: 0,
111
- left: 0,
112
- position: "absolute",
109
+ secureContent: {
110
+ fontFamily: Platform.OS === "ios" ? "Courier" : "monospace",
111
+ fontSize: 12,
112
+ },
113
+ signOutBtn: {
114
+ marginTop: 12,
113
115
  },
114
116
  });