react-native-form-builder
react-native-form-builder copied to clipboard
Form validation not working: You attempted to set the key `backgroundColor` with the value `"transparent"` on an object that is meant to be immutable and has been frozen.
Hi, The form is displaying properly but I get an error when I enter some text:
You attempted to set the key backgroundColor
with the value "transparent"
on an object that is meant to be immutable and has been frozen.
Any ideas?
This library works with native base > 2.0. So, Can you please tell me which version of native base you are using in your app.
I am using 2.3.1 and I am having the same issue.
Setting picker as one of the field options causes this error. I got it fixed using a not recommended way.
open
node_modules\react-native-form-builder\src\fields\picker\index.js Goto line 25
<View style={Object.assign(styles.pickerMainAndroid, { // backgroundColor: theme.pickerBgColor, // borderBottomColor: theme.inputBorderColor, // borderBottomWidth: theme.borderWidth, })} >
Comment those line out like so. Until it's fixed properly that's works for now.
Issue is not active from a long while so, closing it.
I still get this issue with the example https://www.npmjs.com/package/react-native-form-builder
I got this error also. It looks is stills present and has not been fixed. Will try with the comment from @03balogun
This issue is certainly still a problem:
platform: ios
node: 10.1.15
navtive-base: 2.12.1
component: picker
Yeah, closing the issue won't fix it XD
I'm having this issue on iOS only.
Sorry guys, it's hard to get time to work on it these days. it seems like a lot of people are facing this issue. I'm open to PRs otherwise I'll debug it on this weekend. Thanks