react-native-form-generator icon indicating copy to clipboard operation
react-native-form-generator copied to clipboard

TextInput disappear when prop label defined

Open gploteau opened this issue 8 years ago • 1 comments

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

gploteau avatar Aug 13 '17 13:08 gploteau

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>
    );

ccostel avatar Oct 22 '17 12:10 ccostel