Skip to content

Commit

Permalink
affichage correct de "Voici les établissements[...]"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kgeek33 committed Nov 17, 2024
1 parent 1ba45d6 commit 9fd16ab
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/views/login/pronote/PronoteInstanceSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import type { Screen } from "@/router/helpers/types";
import { TextInput, TouchableOpacity, View, StyleSheet, ActivityIndicator, Keyboard, KeyboardEvent } from "react-native";
import { TextInput, TouchableOpacity, View, StyleSheet, ActivityIndicator, Keyboard, KeyboardEvent, SafeAreaView } from "react-native";
import pronote from "pawnote";
import Reanimated, { LinearTransition, FlipInXDown, FadeInUp, FadeOutUp, ZoomIn, ZoomOut, Easing, ZoomInEasyDown } from "react-native-reanimated";
import determinateAuthenticationView from "@/services/pronote/determinate-authentication-view";
Expand Down Expand Up @@ -101,17 +101,10 @@ const PronoteInstanceSelector: Screen<"PronoteInstanceSelector"> = ({
}, [search, originalInstances]);

return (
<View
style={[
styles.container,
{
paddingTop: insets.top,
}
]}
>
<SafeAreaView style={styles.container}>
<MaskStars />

<View style={{height: insets.top}} />
<View style={{ height: insets.top, marginTop: "10%" }} />

{!keyboardOpen &&
<Reanimated.View
Expand All @@ -123,9 +116,8 @@ const PronoteInstanceSelector: Screen<"PronoteInstanceSelector"> = ({
<PapillonShineBubble
message={"Voici les établissements que j'ai trouvé !"}
numberOfLines={2}
width={250}
width={260}
noFlex
style={{ marginTop: 0, zIndex: 9999 }}
/>
</Reanimated.View>
}
Expand Down Expand Up @@ -264,17 +256,15 @@ const PronoteInstanceSelector: Screen<"PronoteInstanceSelector"> = ({
</Reanimated.View>

)}
</View>
</SafeAreaView>
);
};

const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
justifyContent: "center",
gap: 20,
paddingTop: -40,
},

overScrollContainer: {
Expand Down

0 comments on commit 9fd16ab

Please sign in to comment.