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

upgrade React Native to 0.57.3 TypeError: undefined is not a function (evaluating 'instance.render()') #21856

Closed
3 tasks
yaoyingjiang opened this issue Oct 19, 2018 · 12 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@yaoyingjiang
Copy link

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 134.06 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.4.0 - /usr/local/bin/node
Yarn: 1.7.0 - ~/.yarn/bin/yarn
npm: 5.8.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
Android SDK:
Build Tools: 20.0.0, 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.3
API Levels: 21, 22, 23, 24, 25, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4720617
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.3 => 0.57.3
npmGlobalPackages:
react-native-cli: 2.0.1

Description

upgrade React Native to 0.57.3 , Android Studio build project finish. i run android complete but when App start show a red box about
TypeError: undefined is not a function (evaluating 'instance.render()')

This error is located at:
    in RootSiblingsWrapper (at AppContainer.js:112)
    in RCTView (at View.js:44)
    in AppContainer (at renderApplication.js:33)

image
image

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

@yaoyingjiang
Copy link
Author

10-18 19:36:43.209 10916-10965/com.cashier.ht E/ReactNativeJS: 'Warning: %s(...): No render method found on the returned component instance: you may have forgotten to define render.', 'RootSiblingsWrapper'

@rahimasgari
Copy link

I have the same problem.
any solution?

@tomershohet
Copy link

Same here

@jerinho

This comment has been minimized.

@ghost
Copy link

ghost commented Nov 27, 2018

Same on RN 0.57.5 . Maybe it is some way related to some unresolved old dependencies.

UPD: Solved this, by deleting android/ and ios/ folders, making react-native eject and react-native link again.

@LingYun
Copy link

LingYun commented Dec 3, 2018

Same on RN 0.57.5 . Maybe it is some way related to some unresolved old dependencies.

UPD: Solved this, by deleting android/ and ios/ folders, making react-native eject and react-native link again.

@NelGarbuzova Can you tell me your specific operation? I have the same problem now. Thank you very much!

@ghost
Copy link

ghost commented Dec 3, 2018

@LingYun i just deleted android/ and ios/ folders, then run react-native eject , then react-native link, then react-native run-android . And that's all. Everything start to work. Same for ios.

@duchunter
Copy link

i dunno how but yarn add @babel/runtime or npm i -s @babel/runtime works for me

@abdulsalam90
Copy link

@duchunter did not worked.

@huytran123
Copy link

huytran123 commented Jan 2, 2019

Use this version to resolve this error :). I have tested it, and worked fine:
"react": "16.6.3",
"react-native": "0.58.0-rc.2"

@rosebless
Copy link

any idea? or any one know the cause of problem? i can't solve this problem. i try all comment but not work

@ferrannp
Copy link
Contributor

We are going to close this issue as it seems to be out of date. Please try to update to latest React Native 0.59.x and we can reopen this if the issue still persists.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests