Error: undefined is not a function (evaluating 'UIManager.setChildren(containerTag,createdTags)')
See original GitHub issueEnvironment:
- react-native 0.26.0-rc
- react 15.0.2
- Android 5.1.1 API 22
- Mac OSX 10.11.14
Issue: When running my app (in dev mode), I am getting the following error:
E/ReactNativeJS: undefined is not a function (evaluating ‘UIManager.setChildren(containerTag,createdTags)’)
All attempts at debugging have failed on my part. The Android app contains both native and react-native code, but I currently have no NativeModules or Views - just an Activity whose onCreate is:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Fabric.with(this, new Crashlytics(), new CrashlyticsNdk());
mReactRootView = new ReactRootView(this);
mReactInstanceManager = ReactInstanceManager.builder()
.setApplication(getApplication())
.setBundleAssetName("index.android.bundle")
.setJSMainModuleName("index.android")
.addPackage(new MainReactPackage())
.setUseDeveloperSupport(BuildConfig.DEBUG)
.setInitialLifecycleState(LifecycleState.RESUMED)
.build();
mReactRootView.startReactApplication(mReactInstanceManager, "Insights");
setContentView(mReactRootView);
}
I’ve attached a screenshot of the emulator:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:18 (4 by maintainers)
Top Results From Across the Web
undefined is not a function (evaluating this.function() in react ...
The problem is that I keep getting the error 'undefined is not a function (evaluating ...)'. Im kinda new to javascript and couldn't...
Read more >TypeError: undefined is not a function - JavaScript - SitePoint
It works fine but in iphone, which displays this error: TypeError: undefined is not a function (evaluating 'ulist.prepend(newItem)').
Read more >TypeError: 'undefined' is not an object (evaluating 'section ...
There was an error with your code: TypeError: 'undefined' is not an object (evaluating 'section.addEventListene. What am I doing wrong?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah getting this too after upgrading to 0.26.2. I got a temporary workaround by re-adding the deleted code from UIManager.js
I think react-native version is not stable. When I want to develop with android ,there are many problem.