return(
<KeyboardAwareScrollView
scrollEnabled={true} contentContainerStyle={styles.container} style={{flex:1}}>
<TextInput value = {Nickname} onChangeText={setUsername} textAlign= 'center' placeholder='Username' maxLength={16} style={styles.input}/>
<TextInput value = {Password} onChangeText={setPassword} autoFocus={false} secureTextEntry={true} placeholder='Password' textAlign= 'center' maxLength={32} style={styles.input}/>
<TextInput value = {Firstname} onChangeText={setFirstname} autoFocus={false} textAlign= 'center' placeholder='Firstname' maxLength={16} style={styles.input}/>
<TextInput value = {Lastname} onChangeText={setLastname} autoFocus={false} placeholder='Lastname' textAlign= 'center' maxLength={32} style={styles.input}/>
<TextInput value = {Middlename} onChangeText={setMiddlename} autoFocus={false} placeholder='Middlename' textAlign= 'center' maxLength={32} style={styles.input}/>
<TextInput value = {Email} onChangeText={setEmail} autoFocus={false} placeholder='Email' textAlign= 'center' maxLength={32} style={styles.input}/>
<TextInput value = {Permission} onChangeText={setPermission} autoFocus={false} placeholder='Permission' textAlign= 'center' maxLength={32} style={styles.input}/>
<TextInputMask
type={'datetime'}
options={{
format: 'DD/MM/YYYY'
}}
style={styles.input}
value={date.text}
onChangeText={text => setDate({text: text})}/>
<TouchableOpacity onPress={()=>Registration(userData, accesToken)}>
<Text style = {styles.text}>Зарегистрировать</Text>
</TouchableOpacity>
</KeyboardAwareScrollView>
)
Куча примеров в интернете, но... с классами. У меня одни функции, поэтому нет всяких this'ов. Как это сделать, используя функциональные компоненты?