Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add react-three-fiber canvas #93

Merged
merged 8 commits into from
May 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Set up backgroundcanvas
Christopher David committed May 1, 2023
commit 3c37c22f98ce3eec47ab792fe682687dc057340a
10 changes: 6 additions & 4 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Slot, SplashScreen, Stack } from 'expo-router'
import { useCachedResources } from 'lib/hooks'
import { StatusBar, View } from 'react-native'
import { TamaguiProvider, Theme } from 'tamagui'
import { StatusBar } from 'react-native'
import { TamaguiProvider } from 'tamagui'
import { BackgroundCanvas } from 'views/three/BackgroundCanvas'
import { config } from '../tamagui.config'

export default function Layout() {
@@ -13,9 +14,10 @@ export default function Layout() {

return (
<TamaguiProvider config={config}>
<Theme name="dark">
<BackgroundCanvas />
{/* <Theme name="dark">
<Slot />
</Theme>
</Theme> */}
<StatusBar barStyle="light-content" />
</TamaguiProvider>
)
3 changes: 3 additions & 0 deletions src/views/three/BackgroundCanvas.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const BackgroundCanvas = () => {
return <></>
}