bietkul / react-reactive-form

Angular like reactive forms in React.
MIT License
309 stars 32 forks source link

Using with React Native #1

Closed AstRonin closed 6 years ago

AstRonin commented 6 years ago

Can we use this library with react-native? Or need add some router for that?

bietkul commented 6 years ago

Yes, you can use it with react-native, without any configuration.

AstRonin commented 6 years ago

Back to my question... Did you tested it on mobile platform? I tried to add library but input did not allowed set any symbols. In code I found method in model.js, getControlValue() where RN return undefined of event.target.type, event.target.value and others which works in a browser... It seams like RN does not know about this properties... RN using the various inputs TextInput, Switch... I suppose events in RN are different of ReactJS... So, I think need to add some cases for getting values from RN input components... For example, for TextInput Component match more easy get value from onChangeText callback.

bietkul commented 6 years ago

Thanks for figuring it out. It has been fixed in the latest version.