|
|
@ -4,10 +4,17 @@ import {RootStackScreenProps} from "../types.js";
|
|
|
|
import Rive from 'rive-react-native';
|
|
|
|
import Rive from 'rive-react-native';
|
|
|
|
import {useRef} from "react";
|
|
|
|
import {useRef} from "react";
|
|
|
|
import {RiveViewManager} from "rive-react-native/lib/typescript/Rive.js";
|
|
|
|
import {RiveViewManager} from "rive-react-native/lib/typescript/Rive.js";
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
import {useSafeAreaInsets} from "react-native-safe-area-context";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default function App({ navigation }: RootStackScreenProps<'Home'>) {
|
|
|
|
|
|
|
|
const riveRef = useRef();
|
|
|
|
|
|
|
|
const insets = useSafeAreaInsets();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
background: {
|
|
|
|
background: {
|
|
|
|
backgroundColor: 'black',
|
|
|
|
backgroundColor: 'black',
|
|
|
|
height: '100%',
|
|
|
|
height: '100%',
|
|
|
|
|
|
|
|
paddingTop: insets.top,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
container:{
|
|
|
|
container:{
|
|
|
@ -46,10 +53,7 @@ const styles = StyleSheet.create({
|
|
|
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
|
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export default function App({ navigation }: RootStackScreenProps<'Home'>) {
|
|
|
|
|
|
|
|
const riveRef = useRef();
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<SafeAreaView style={styles.background}>
|
|
|
|
<SafeAreaView style={styles.background}>
|
|
|
|
|
|
|
|
|
|
|
|