-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirstLaunchScreen.component.js
51 lines (46 loc) · 1.25 KB
/
firstLaunchScreen.component.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React, { useEffect, useState } from 'react'
import {
SafeAreaView,
View,
StyleSheet,
Picker,
ScrollView,
Platform,
TouchableWithoutFeedback,
Keyboard, KeyboardAvoidingView, AsyncStorage
} from 'react-native'
import { Divider, Text, TextInput, Button } from 'react-native-paper'
// import { Profiles } from './reusable_components/temp'
import { ProfileForm } from './reusable_components/createProfileForm'
export const FirstLaunchScreen = ({ navigation, database, propSetter }) => {
const [profileHasBeenSubmitted, setProfileHasBeenSubmitted] = useState(false)
const styles = StyleSheet.create({
container: {
flex: 1
},
inner: {
padding: 24,
flex: 1,
justifyContent: 'space-around'
},
header: {
fontSize: 36,
marginBottom: 48
},
textInput: {
height: 40,
borderColor: '#000000',
borderBottomWidth: 1,
marginBottom: 36
},
btnContainer: {
backgroundColor: 'white',
marginTop: 12
}
})
return (
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'}>
<ProfileForm navi={navigation} database={database} profileSubmitted={setProfileHasBeenSubmitted}/>
</KeyboardAvoidingView>
)
}