Skip to content

Commit 635908c

Browse files
fix first time load screen for ipad users
1 parent 36acd95 commit 635908c

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

screens/FirstLoadModal.tsx

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@ import {View, StyleSheet, Dimensions, TouchableHighlight, ScrollView} from "reac
22
import {Component} from "react";
33
import {StatusBar} from "expo-status-bar";
44
import {Text} from "../components/Themed";
5-
import ModalShareThingy from "../util/ModalShareThingy";
65
import AsyncStorage from "@react-native-async-storage/async-storage";
76

87
export default class FirstLoadModal extends Component<any> {
98

109
render() {
1110
return (
12-
<View style={styles.container}>
13-
<StatusBar style="light" />
14-
<Text style={styles.header}>
15-
Welcome to AnonyMail!
16-
</Text>
17-
<Text style={styles.info}>
18-
Using this app, you can generate anonymous email addresses!
19-
</Text>
20-
<ScrollView persistentScrollbar={true}>
11+
<ScrollView persistentScrollbar={true}>
12+
<View style={styles.container}>
13+
<StatusBar style="light" />
14+
<Text style={styles.header}>
15+
Welcome to AnonyMail!
16+
</Text>
17+
<Text style={styles.info}>
18+
Using this app, you can generate anonymous email addresses!
19+
</Text>
2120
<Text style={styles.question}>
2221
What is the purpose of generating temporary emails?
2322
</Text>
@@ -37,18 +36,18 @@ export default class FirstLoadModal extends Component<any> {
3736
Once emails are sent to you, they are deleted from our servers. No-one can have
3837
an email address that has already been generated.
3938
</Text>
40-
</ScrollView>
41-
<TouchableHighlight
42-
onPress={async (event) => {
43-
await AsyncStorage.setItem("@lecture_1", "true");
44-
this.props.navigation.goBack();
45-
}}
46-
>
47-
<View style={styles.start_view}>
48-
<Text style={styles.start}>Tap to generate your first email address!</Text>
49-
</View>
50-
</TouchableHighlight>
51-
</View>
39+
<TouchableHighlight
40+
onPress={async (event) => {
41+
await AsyncStorage.setItem("@lecture_1", "true");
42+
this.props.navigation.goBack();
43+
}}
44+
>
45+
<View style={styles.start_view}>
46+
<Text style={styles.start}>Tap to generate your first email address!</Text>
47+
</View>
48+
</TouchableHighlight>
49+
</View>
50+
</ScrollView>
5251
);
5352
}
5453

0 commit comments

Comments
 (0)