fix homescreen safearea

redux_test_david
Lucas Delanier 2 years ago
parent a7af56a460
commit 1a99571791

@ -4,10 +4,17 @@ import {RootStackScreenProps} from "../types.js";
import Rive from 'rive-react-native';
import {useRef} from "react";
import {RiveViewManager} from "rive-react-native/lib/typescript/Rive.js";
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: {
backgroundColor: 'black',
height: '100%',
paddingTop: insets.top,
},
container:{
@ -47,9 +54,6 @@ const styles = StyleSheet.create({
},
});
export default function App({ navigation }: RootStackScreenProps<'Home'>) {
const riveRef = useRef();
return (
<SafeAreaView style={styles.background}>

@ -12,7 +12,7 @@ export default function WatchLaterScreen({ navigation }: RootTabScreenProps<'Wat
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: insets.top + 22,
paddingTop: 22,
backgroundColor: "#232323"
},
linearGradient: {

Loading…
Cancel
Save