I run UIExplorer this example but Crash
React Native Version is 0.1.7 I run UIExplorer this example but Crash on Moto X + 1(Android5.1),Nexus 6p(Android6.0.1) Crash log⬇️ react.txt
Hey chenqizheng, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
- If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag
react-nativeor for more real time interactions, ask on Discord in the #react-native channel. - If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
- We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!
@chenqizheng Could you try running the example from master or the latest stable release?
@christopherdro After updating the code, APK doesn't crash on , but,when I execute “./packager/packager.sh” , error log as :
➜ react-native git:(master) ✗ ./packager/packager.sh /Users/Chen/Study/Study/SourceCode/github/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:315 throw new Error("Couldn't find preset " + JSON.stringify(val)); ^
Error: Couldn't find preset "react-native"
at OptionManager.mergePresets (/Users/Chen/Study/Study/SourceCode/github/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:315:17)
at OptionManager.mergeOptions (/Users/Chen/Study/Study/SourceCode/github/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:12)
at compile (/Users/Chen/Study/Study/SourceCode/github/react-native/node_modules/babel-register/lib/node.js:87:15)
at loader (/Users/Chen/Study/Study/SourceCode/github/react-native/node_modules/babel-register/lib/node.js:128:14)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:345:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:355:17)
at require (internal/module.js:13:17)
at Object.
Hi @chenqizheng,
As I see from your trace, you have
Error: Couldn't find preset "react-native"
error. To fix it, you need to install this preset as required:
$ npm install react-native --save-dev
@chenqizheng
Double check that you ran npm install inside the UIExplorer demo before running the app.
Closing this for now. Feel free to re-open the issue if the problem persists. Thanks!