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

multiline not working (Android)

Open Gabsys opened this issue 7 years ago • 5 comments

My code : <Input multiline={true} numberOfLines={5} inlineLabel={false} underlineColorAndroid="#939393"/>

Output : The input box resulted in normal single line input, doesn't become bigger nor enable multiline input

Did I miss anything in my code? O.o

Gabsys avatar Jun 06 '18 03:06 Gabsys

<Input name="message" label="Message" placeholder="" multiline numberOfLines={5} inlineLabel={false} />

you need to do that it wont work without a name as thats how forms work and have you done import { Input } from 'react-native-clean-form/redux-form-immutable

The-Code-Monkey avatar Jun 06 '18 12:06 The-Code-Monkey

Tried inserting name, still not working. and yeah, i did import Input.

As below is my full code:

<Input  name="Address" label="Address" multiline={true} numberOfLines={5} inlinelabel={false}
  onChangeText={address => this.setState({ address })} defaultValue={this.state.member.address}
 placeholder='Ex: 102, Jalan Nima, Taman Nima' autoCorrect={false} blurOnSubmit={false}
 returnKeyType={'next'} underlineColorAndroid="#939393"/>

Gabsys avatar Jun 07 '18 03:06 Gabsys

try removing your onchangetext and i dont think its default value its value

The-Code-Monkey avatar Jun 12 '18 08:06 The-Code-Monkey

I seem to be getting this issue too now

The-Code-Monkey avatar Jun 12 '18 13:06 The-Code-Monkey

Im thinking of taking this library and making it my own. this will take a week or so for me to do so allow me a little time ill sort out most of the issues.

The-Code-Monkey avatar Jun 12 '18 13:06 The-Code-Monkey