forked from wass08/r3f-wawa-eats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (26 loc) · 728 Bytes
/
App.js
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
import { Canvas } from "@react-three/fiber/native";
import { StatusBar } from "expo-status-bar";
import { Suspense } from "react";
import { StyleSheet, View } from "react-native";
import { BottomUI } from "./components/BottomUI";
import { Sandwich } from "./components/Sandwich";
export default function App() {
return (
<View style={styles.container}>
<Canvas camera={{ position: [-2, 2.5, 5], fov: 30 }}>
<color attach="background" args={["#512DA8"]} />
<Suspense>
<Sandwich />
</Suspense>
</Canvas>
<BottomUI />
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
},
});