react-native-android

How to debug react native apps in visual studio code?

三世轮回 提交于 2019-11-26 14:54:58
问题 I am using visual studio code IDE to develop react native app and am not using expo library. Before that I was working on the android studio, debugging in that is straightforward and simple. Now for react-native, I wanted to know how to debug my app using visual studio code IDE? 回答1: If you want to debug the app in VS Code itself, like in other IDEs. Then on approach can be to follow the following steps: Install React Native Tools Extension (provided by Microsoft ) to VS Code. This is a nice

Network Response Time Out Error (create-react-native-app) (expo)

╄→гoц情女王★ 提交于 2019-11-26 12:06:41
问题 I am trying to run create-react-native-app on expo app in android. Firstly ,I created the project by writing command create-react-native-app test then I executed npm start then scanned the qr code from expo app. But after scanning QR code , I am getting following error: Uncaught Error: Java.net,sockettimeoutException: failed to connect to after 10000ms Github Issue: https://github.com/react-community/create-react-native-app/issues/144#issuecomment-296631692 回答1: This is due to not open port

React Native Version Mismatch

Deadly 提交于 2019-11-26 07:22:52
问题 Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. Getting the following message when i init a new project and then launch the x-code emulator. \"React-Native Version Mismatch\" Javascript Version 0.50.1 Native version: 0.50.0 Make sure you have rebuilt the native code... Does anyone know what is going on here and can help me? Thanks! 回答1: This is

Unable to load script from assets index.android.bundle on windows

独自空忆成欢 提交于 2019-11-25 22:48:00
问题 I\'m trying to run my first React Native project for first time on my device (Android 4.2.2). And I get: unable to load script from assets index.android.bundle Commands that I used: cd (project directory) react-native start react-native run-android 回答1: I've encountered the same issue while following the React Native tutorial (developing on Linux and targeting Android). This issue helped me resolve the problem in following steps. (in project directory) mkdir android/app/src/main/assets react