fix profile picture 🚑

Tests
Lucas Delanier 2 years ago
parent a94135f17d
commit 221fcd4d31

@ -12,6 +12,8 @@ class Review {
this.message = message; this.message = message;
if (profile_path == null) { if (profile_path == null) {
this.profile_path = "https://thumbs.dreamstime.com/b/profil-vectoriel-avatar-par-d%C3%A9faut-utilisateur-179376714.jpg"; this.profile_path = "https://thumbs.dreamstime.com/b/profil-vectoriel-avatar-par-d%C3%A9faut-utilisateur-179376714.jpg";
} else if (profile_path.slice(0, 6) === "/https") {
this.profile_path = profile_path.slice(1, 100);
} else { } else {
this.profile_path = 'https://image.tmdb.org/t/p/w185' + profile_path; this.profile_path = 'https://image.tmdb.org/t/p/w185' + profile_path;
} }

@ -421,7 +421,7 @@ export default function InfoScreen({navigation, route}: RootStackScreenProps<'In
<TouchableOpacity onPress={() => navigation.goBack()} style={{zIndex: 100}}> <TouchableOpacity onPress={() => navigation.goBack()} style={{zIndex: 100}}>
<Ionicons name="ios-arrow-back" size={30} color="white" style={styles.backButton}/> <Ionicons name="ios-arrow-back" size={30} color="white" style={styles.backButton}/>
</TouchableOpacity> </TouchableOpacity>
<ScrollView style={styles.list} showsVerticalScrollIndicator={false} onScroll={handleScroll} scrollEventThrottle={1} <ScrollView style={styles.list} showsVerticalScrollIndicator={false} onScroll={handleScroll} scrollEventThrottle={32}
> >
<View style={styles.section1}> <View style={styles.section1}>
<Text style={styles.title} numberOfLines={2}>{item.original_title}</Text> <Text style={styles.title} numberOfLines={2}>{item.original_title}</Text>

Loading…
Cancel
Save