O'Reilly logo

React Native - Building Mobile Apps with JavaScript by Vladimir Novick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Login screen

Let's now create our Login screen. Visually, it will look as in the following screenshot:

Let's take a look at the render function and then go through the code:

 <View        style={styles.container}>        <Image          style={[ styles.logo ]}          source={require('../assets/imgs/InstagramLogo.png')}/>        <ScrollView style={styles.container}>          <TextInput              ref={(textInput) => this._user = textInput }              style={styles.inputField}              value={this.state.text}              onChangeText={(user) => this.setState({user})}              onSubmitEditing={(event) => this._password.focus()}              onFocus={() => this.clearValidationErrors() }              editable={true}              maxLength={40}              multiline={false} placeholder="Phone ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required