import * as React from 'react';
import {Button,TouchableOpacity,ScrollView,View, Text, StyleSheet, Image, ImageBackground, SafeAreaView} from 'react-native';
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";
const styles = StyleSheet.create({
background: {
backgroundColor: 'black',
height: '100%',
},
container:{
flex: 1,
},
filmCard: {
width: 310,
height: 450,
justifyContent:'center',
marginLeft:'auto',
marginRight:'auto',
borderRadius: 15,
},
image: {
position: 'absolute',
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 6,
},
shadowOpacity: 0.39,
shadowRadius: 8.30,
flex: 1,
paddingTop: 230,
alignSelf: 'center',
elevation: 13,
},
backgroundImage: {
flex: 1,
resizeMode: 'cover', // or 'stretch'
},
child: {
flex: 1,
backgroundColor: 'rgba(0,0,0,0.5)',
},
});
export default function App({ navigation }: RootStackScreenProps<'Home'>) {
const riveRef = useRef();
return (
SPIDER-MAN No Way Home
Jean-Marc généreux
);
}
type BadgeGenreProps = {
name : String
isSelected: Boolean
}
export function BadgeGenre(props: BadgeGenreProps) {
if(props.isSelected==false){
return (
{props.name}
);
}
else{
return (
{props.name}
);
}
}
type BadgeFilmProps = {
name : String
}
export function BadgeFilm(props: BadgeFilmProps) {
return (
{props.name}
);
}