react-native-form-builder icon indicating copy to clipboard operation
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.

Open stephenfromrobin opened this issue 7 years ago • 10 comments

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?

stephenfromrobin avatar Jul 28 '17 07:07 stephenfromrobin

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.

bietkul avatar Aug 05 '17 10:08 bietkul

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

Papipo avatar Aug 16 '17 16:08 Papipo

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.

03balogun avatar Aug 17 '17 12:08 03balogun

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

bietkul avatar Oct 11 '17 19:10 bietkul

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

v-stickykeys avatar Nov 04 '18 23:11 v-stickykeys

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

ferroblesh avatar Feb 10 '19 19:02 ferroblesh

This issue is certainly still a problem:

platform: ios
node: 10.1.15
navtive-base: 2.12.1
component: picker

adslaton avatar Apr 09 '19 14:04 adslaton

Yeah, closing the issue won't fix it XD

Papipo avatar Apr 11 '19 12:04 Papipo

I'm having this issue on iOS only.

omatrot avatar Apr 16 '19 14:04 omatrot

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

bietkul avatar Apr 16 '19 20:04 bietkul