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

Check the render method of SceneView error when upgraded to v4.0.1 #3171

Closed
firehand33 opened this issue Aug 12, 2018 · 7 comments
Closed

Check the render method of SceneView error when upgraded to v4.0.1 #3171

firehand33 opened this issue Aug 12, 2018 · 7 comments

Comments

@firehand33
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.1
  • react-native v0.51.1

Getting the below error when upgraded from v4.0.0-beta.31 to v4.0.1
**Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check the render method of SceneView.**

@fcabrera23
Copy link

Hi, I’m having the some problem! Will try to downgrade flux to see if it’s fixed

@alejandroclvi
Copy link

Hi, I'm having the same problem, and I'm using react native v0.50.3, any ideas of why?

@daviscabral
Copy link
Collaborator

daviscabral commented Aug 16, 2018 via email

@daviscabral
Copy link
Collaborator

@alejandroclvi @Danferd @fcabrera23 I was not able to reproduce it with the Example that I have here. But I do believe that is because babel is misconfigured. What is the react and react-native versions that you are using?

Could you check if your version is compatible?

react-native react
0.46.x 16.0.0-alpha.12
0.47.x 16.0.0-alpha.12
0.48.x 16.0.0-alpha.12
0.49.x 16.0.0-beta.5
0.50.x 16.0.0
0.51.x 16.0.0
0.52.x 16.2.0
0.54.x 16.3.0-alpha.1
0.55.x 16.3.1
0.56.x 16.4.1

Also, check this document about what have changed and breaking changes that might help you identify what is going on there.

https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md

@firehand33
Copy link
Author

i'm using:

"react": "^16.4.2",
"react-native": "^0.51.1",

@daviscabral
Copy link
Collaborator

@Danferd but what is the version installed? Try to run these commands to check the versions you are using and if they are compatible.

$ npm ls react-native
[email protected] /Users/daviscabral/Projects/open-source/react-native-router-flux
└── [email protected]

$ npm ls react
[email protected] /Users/daviscabral/Projects/open-source/react-native-router-flux
└── [email protected]

@aksonov
Copy link
Owner

aksonov commented Sep 5, 2018

@Danferd I can't reproduce it. Make sure you removed node_modules before RNRF upgrade. It is very possible to latest react navigation may not support old react native version. Try to upgrade to latest 0.56.0 or 0.55.4 (I'm using 0.55.4). Check Example project as well.
Try to simplify your Router to one Scene and check. After that add more scenes one by one.

@aksonov aksonov closed this as completed Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants