register user input label

This commit is contained in:
Priyatham Sai chand 2022-04-01 07:33:11 +05:30
parent 951f68377d
commit e8a39da3e5
No known key found for this signature in database
GPG Key ID: C3DFD0A2F6675222
1 changed files with 17 additions and 5 deletions

View File

@ -55,9 +55,12 @@ const RegisterUserScreen = () => {
style:styles.input,
onChangeText:setUsername,
value:username,
placeholder:"username",
placeholderTextColor : "#4b4a4a",
}
var inputHeadingProps = {
style: styles.inputHeading
}
return (
@ -66,11 +69,13 @@ const RegisterUserScreen = () => {
<View
style={styles.viewRoot}>
<Text style={styles.heading}>Log In</Text>
<View style={{ flexDirection: "row", marginTop: "20%"}}>
<TextInput {...textInputProps} />
<View style={{ flexDirection: "column", marginTop: "10%"}}>
<Text {...inputHeadingProps}>Username </Text>
<TextInput {...textInputProps} placeholder="Name of the user"/>
</View>
<View style={{ flexDirection: "row", marginTop: "10%"}}>
<TextInput {...textInputProps} />
<View style={{ flexDirection: "column", marginTop: "10%"}}>
<Text {...inputHeadingProps}>Password</Text>
<TextInput {...textInputProps} placeholder="Name of the organization" />
</View>
<View style={{ flexDirection: "row", marginTop: "10%", justifyContent: "center"}}>
@ -134,6 +139,13 @@ const styles = StyleSheet.create({
color: "black",
backgroundColor: "#c4c4c4",
},
inputHeading: {
fontSize: 25,
margin: 12,
justifyContent: 'center',
fontFamily: 'Ubuntu-Bold',
color: '#1C254E',
},
});
export default RegisterUserScreen;