create-better-t-stack 3.1.7 → 3.1.8-canary.932e5243
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.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DeOVz-ZI.js → src-EpWSiOd8.js} +51 -13
- package/package.json +1 -1
- package/templates/auth/better-auth/convex/backend/convex/auth.ts.hbs +10 -2
- package/templates/auth/better-auth/convex/native/base/lib/auth-client.ts.hbs +19 -0
- package/templates/auth/better-auth/convex/native/nativewind/components/sign-in.tsx.hbs +86 -0
- package/templates/auth/better-auth/convex/native/nativewind/components/sign-up.tsx.hbs +97 -0
- package/templates/auth/better-auth/convex/native/unistyles/components/sign-in.tsx.hbs +127 -0
- package/templates/auth/better-auth/convex/native/unistyles/components/sign-up.tsx.hbs +145 -0
- package/templates/auth/better-auth/native/{native-base → base}/lib/auth-client.ts.hbs +3 -2
- package/templates/auth/better-auth/web/react/next/src/app/dashboard/page.tsx.hbs +11 -0
- package/templates/frontend/native/nativewind/app/(drawer)/index.tsx.hbs +151 -100
- package/templates/frontend/native/nativewind/app/_layout.tsx.hbs +21 -0
- package/templates/frontend/native/unistyles/app/(drawer)/index.tsx.hbs +201 -91
- package/templates/frontend/native/unistyles/app/_layout.tsx.hbs +28 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/android-icon-background.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/android-icon-foreground.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/android-icon-monochrome.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/favicon.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/icon.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/partial-react-logo.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/react-logo.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/react-logo@2x.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/react-logo@3x.png +0 -0
- /package/templates/frontend/native/{native-base → base}/assets/images/splash-icon.png +0 -0
|
@@ -8,7 +8,13 @@ import { queryClient } from "@/utils/trpc";
|
|
|
8
8
|
import { queryClient } from "@/utils/orpc";
|
|
9
9
|
{{/if}}
|
|
10
10
|
{{#if (eq backend "convex")}}
|
|
11
|
+
{{#if (eq auth "better-auth")}}
|
|
12
|
+
import { ConvexReactClient } from "convex/react";
|
|
13
|
+
import { ConvexBetterAuthProvider } from "@convex-dev/better-auth/react";
|
|
14
|
+
import { authClient } from "@/lib/auth-client";
|
|
15
|
+
{{else}}
|
|
11
16
|
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
|
17
|
+
{{/if}}
|
|
12
18
|
{{#if (eq auth "clerk")}}
|
|
13
19
|
import { ClerkProvider, useAuth } from "@clerk/clerk-expo";
|
|
14
20
|
import { ConvexProviderWithClerk } from "convex/react-clerk";
|
|
@@ -67,6 +73,28 @@ export default function RootLayout() {
|
|
|
67
73
|
</GestureHandlerRootView>
|
|
68
74
|
</ConvexProviderWithClerk>
|
|
69
75
|
</ClerkProvider>
|
|
76
|
+
{{else if (eq auth "better-auth")}}
|
|
77
|
+
<ConvexBetterAuthProvider client={convex} authClient={authClient}>
|
|
78
|
+
<GestureHandlerRootView style=\{{ flex: 1 }}>
|
|
79
|
+
<Stack
|
|
80
|
+
screenOptions=\{{
|
|
81
|
+
headerStyle: {
|
|
82
|
+
backgroundColor: theme.colors.background,
|
|
83
|
+
},
|
|
84
|
+
headerTitleStyle: {
|
|
85
|
+
color: theme.colors.foreground,
|
|
86
|
+
},
|
|
87
|
+
headerTintColor: theme.colors.foreground,
|
|
88
|
+
}}}
|
|
89
|
+
>
|
|
90
|
+
<Stack.Screen name="(drawer)" options=\{{ headerShown: false }} />
|
|
91
|
+
<Stack.Screen
|
|
92
|
+
name="modal"
|
|
93
|
+
options=\{{ title: "Modal", presentation: "modal" }}
|
|
94
|
+
/>
|
|
95
|
+
</Stack>
|
|
96
|
+
</GestureHandlerRootView>
|
|
97
|
+
</ConvexBetterAuthProvider>
|
|
70
98
|
{{else}}
|
|
71
99
|
<ConvexProvider client={convex}>
|
|
72
100
|
<GestureHandlerRootView style=\{{ flex: 1 }}>
|
/package/templates/frontend/native/{native-base → base}/assets/images/android-icon-background.png
RENAMED
|
File without changes
|
/package/templates/frontend/native/{native-base → base}/assets/images/android-icon-foreground.png
RENAMED
|
File without changes
|
/package/templates/frontend/native/{native-base → base}/assets/images/android-icon-monochrome.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/frontend/native/{native-base → base}/assets/images/partial-react-logo.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|