MichaelCereda / react-native-form-generator

Generate forms with native look and feel in a breeze
MIT License
377 stars 105 forks source link

TextInput disappear when prop label defined #120

Open gploteau opened 7 years ago

gploteau commented 7 years ago

On Android, label width is above TextInput and are same width

ccostel commented 7 years ago

I have stumbled upon the same issue.

return (
       <ScrollView keyboardShouldPersistTaps="always" style={{paddingLeft:10,paddingRight:10, height:200}}>
        <Form
          ref='settingsForm'
          onFocus={this.handleFormFocus.bind(this)}
          onChange={this.handleFormChange.bind(this)}
          label="Faraday Motion Vehicle Settings"
        >
         <InputField ref='motorCount' placeholder='Last Name' label="Motor Count" value={this.state.settings.motorCount}/>
         <Separator />
        </Form>
      </ScrollView>
    );