Created
August 25, 2018 23:22
-
-
Save wesleyguirra/f1cfe8ace119f04c9f6f06b5deb0ae8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.state.companyExists ? ( | |
<Stage key={'Cadastro Empresa'} noPrevious continue={() => true}> | |
{(instance, context) => ( | |
<View> | |
<View> | |
<Text style={styles.title}>{'Cadastre sua empresa'}</Text> | |
</View> | |
<View style={styles.inputContainer}> | |
<Icon name='home' size={18} color='gray' style={styles.icon}/> | |
<TextInput style={styles.input} | |
placeholder="Razão social" | |
returnKeyType="done" | |
keyboardType="default" | |
editable={true} | |
autoCorrect={false} | |
onChangeText={socialName => { this.setState({socialName}) }}/> | |
</View> | |
<View style={styles.inputContainer}> | |
<Icon name='feather' size={18} color='gray' style={styles.icon}/> | |
<TextInput style={styles.input} | |
placeholder="Nome fantasia" | |
returnKeyType="done" | |
keyboardType="default" | |
editable={true} | |
autoCorrect={false} | |
onChangeText={phantasyName => { this.setState({phantasyName})}}/> | |
</View> | |
<View style={styles.inputContainer}> | |
<Icon name='map' size={18} color='gray' style={styles.icon}/> | |
<TextInputMask style={styles.input} | |
refInput={(ref) => this.zipCode = ref} | |
type={'zip-code'} | |
placeholder="CEP" | |
returnKeyType="done" | |
keyboardType="numeric" | |
value={this.state.address.zipCode} | |
editable={true} | |
autoCorrect={false} | |
onChangeText={zipCode => { this.setState({address: {zipCode: zipCode}}); this.isValid() }}/> | |
</View> | |
</View> | |
)} | |
</Stage> | |
): null } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment