Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 28, 2017 · 10 comments · May be fixed by #44

Comments

@stephenfromrobin
Copy link

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
Copy link
Owner

bietkul commented Aug 5, 2017

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
Copy link

Papipo commented Aug 16, 2017

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

@03balogun
Copy link

03balogun commented Aug 17, 2017

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
Copy link
Owner

bietkul commented Oct 11, 2017

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

@bietkul bietkul closed this as completed Oct 11, 2017
@v-stickykeys
Copy link

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

@ferroblesh
Copy link

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

@adslaton
Copy link

adslaton commented Apr 9, 2019

This issue is certainly still a problem:

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

@Papipo
Copy link

Papipo commented Apr 11, 2019

Yeah, closing the issue won't fix it XD

@omatrot
Copy link

omatrot commented Apr 16, 2019

I'm having this issue on iOS only.

@bietkul
Copy link
Owner

bietkul commented Apr 16, 2019

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 bietkul reopened this Apr 16, 2019
megumi-kato pushed a commit to megumi-kato/react-native-form-builder that referenced this issue Aug 2, 2019
Gustl22 pushed a commit to Gustl22/react-native-form-builder that referenced this issue Oct 30, 2019
@Gustl22 Gustl22 linked a pull request Oct 30, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants