bietkul / react-native-form-builder

Handle your forms in a smart way
MIT License
121 stars 68 forks source link

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. #1

Open stephenfromrobin opened 7 years ago

stephenfromrobin commented 7 years ago

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?

bietkul commented 7 years ago

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.

Papipo commented 7 years ago

I am using 2.3.1 and I am having the same issue.

03balogun commented 7 years ago

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.

bietkul commented 6 years ago

Issue is not active from a long while so, closing it.

v-stickykeys commented 5 years ago

I still get this issue with the example https://www.npmjs.com/package/react-native-form-builder

ferroblesh commented 5 years ago

I got this error also. It looks is stills present and has not been fixed. Will try with the comment from @03balogun

adslaton commented 5 years ago

This issue is certainly still a problem:

platform: ios
node: 10.1.15
navtive-base: 2.12.1
component: picker
Papipo commented 5 years ago

Yeah, closing the issue won't fix it XD

omatrot commented 5 years ago

I'm having this issue on iOS only.

bietkul commented 5 years ago

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