mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Fixed loading screen in start studying page
This commit is contained in:
parent
7b175c44df
commit
02eabd2b41
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ import MapView, { UrlTile, Marker } from "react-native-maps";
|
||||||
import { useNavigation } from "@react-navigation/native";
|
import { useNavigation } from "@react-navigation/native";
|
||||||
import { useToast } from "react-native-toast-notifications";
|
import { useToast } from "react-native-toast-notifications";
|
||||||
import CaretLeftIcon from "../../icons/CaretLeftIcon/CaretLeftIcon";
|
import CaretLeftIcon from "../../icons/CaretLeftIcon/CaretLeftIcon";
|
||||||
|
import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer";
|
||||||
|
|
||||||
export default function StartStudying({ route }: any) {
|
export default function StartStudying({ route }: any) {
|
||||||
const { location } = route.params;
|
const { location } = route.params;
|
||||||
|
@ -105,11 +106,11 @@ export default function StartStudying({ route }: any) {
|
||||||
if (StudentInfo.isLoading) {
|
if (StudentInfo.isLoading) {
|
||||||
return (
|
return (
|
||||||
<View style={styles.background}>
|
<View style={styles.background}>
|
||||||
<AnimatedContainerNoScroll>
|
<AnimatedContainer>
|
||||||
<View style={{ paddingVertical: 8 }} />
|
<View style={{ paddingVertical: 8 }} />
|
||||||
<ActivityIndicator size={96} color={colors.secondary_1} />
|
<ActivityIndicator size={96} color={colors.secondary_1} />
|
||||||
<Text style={styles.text_white_medium}>Loading...</Text>
|
<Text style={styles.text_white_medium}>Loading...</Text>
|
||||||
</AnimatedContainerNoScroll>
|
</AnimatedContainer>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue