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

react native t comb form ERROR Warning: Component "Textbox" contains the string ref "input". React.createRef() #601

Open
hoerlanton opened this issue Apr 24, 2021 · 2 comments

Comments

@hoerlanton
Copy link

hoerlanton commented Apr 24, 2021

Version

Tell us which versions you are using:

  • tcomb-form-native ^0.6.20
  • react-native v0.64.0

Expected behaviour

Here my SO question: https://stackoverflow.com/questions/67244411/react-native-t-comb-form-error-string-ref-input-react-createref

I can edit this issue / question if it is not well explained. This is my first time submitting an issue :)

@hoerlanton
Copy link
Author

I did the following to solve the issue:

I did overwrite the ref="input" with:

const formRef = React.createRef()
ref={formRef}

@nobady90
Copy link

nobady90 commented Nov 11, 2021

Hi @hoerlanton, I have the same problem, among other things the latest update of this plugin is really too long ago, damn.

I have this dependencies:

"react": "17.0.1",
"react-native": "0.64.2",
"tcomb-form-native": "^0.6.20"

and even if I put:

const formRef = React.createRef ()
ref = {formRef}

I always get that error ... have you solved it simply with this?

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

No branches or pull requests

2 participants