Iam new to React Native. Can you please let me know if there is any dependency on Android studio when creating react native app using real device as emulator?
Iam facing below issues with gradle.
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.0/gradle-5.0.pom'.
there is no extra dependency when using real device
just turn your usb debugging on and connect your device to pc
then
react-native run-android
Related
I wonder if I can run my react native project on tablet emulator.
I used to develop with expo since now. But things got changed and I need to run my project on tablet for some reasons.
Does anyone know if I can run my project on tablet emulator?
I dont know about React Native CLI with emulator since I am using expo to now. Does react native bare setup allow us to run projects on bigger sizes like tablets?
I have Custom Development Client App build with EAS and it is always crashing when I try to open React Native Debbuger without any log.
Steps to reproduce:
eas build --profile development --platform android
Start Emulator and download build from link produced in step 1. Open the App.
expo start --dev-client
Press a │ open Android
Press m │ toggle menu
Press "Debug Remote JS" on device/emulator
React Native Debugger opens in th browser but app is crashing and does it everytime I try to open it again.
Same thing happens on the physical device.
React Native application might be using a library that uses JSI, e.g React Native Reanimated 2 (https://docs.swmansion.com/react-native-reanimated/docs/#known-problems-and-limitations) or React Native MMKV (https://github.com/mrousavy/react-native-mmkv#limitations).
With these libraries, remote debugging won't execute properly. I'd start on checking of known limitations on your project's 3rd party libs.
I noticed that connecting expo-dev-client via localhost automatically crashes the app.
Try to use LAN network and make sure that your device and computer are on the same network.
I use React Native Debugger but it has its limitation so can anyone guide me with the bare minimum on how to start debugging using Facebook Flipper and even is it worth it to use?
My main requirement is to be able to monitor the Network and Database of React Native app.
please go through below points for debug react native app using flipper.
React Native version should be latest.
Install desktop app for flipper in window and mac(If you are using mac than may be ask for some permission).
Open flipper and run react native project.
Finally If you see in flipper than you project dom tree is showing in react dev tool.Below I attached screenshot for react dev tools using flipper.
Note:- Flipper provide more feature like inspect network request, layout, you can check react native log and native logs(for ios and android).It is more easy just follow above steps.
I am using expo for my react native application.
Steps:
- run expo start
Hit the error below on android studio emulator.
Working fine on real android device and IOS simulator.
UPDATE:
I have solved the issue. The issue was with my android studio. I open the app using the genymotion emulator and it was working
Unfortunately, Branch does not officially have a wrapper SDK for Expo and the link you referenced is built by a third-party which we cannot help troubleshoot.
Can you try ejecting your build from Expo and use native packages and linking in React Native, by following this: https://docs.branch.io/apps/react-native/#integrate-branch
Can I use any other app instead of Expo to run react native app?
Expo is not compatible with my phone.
Yes, you can use the way suggested in the react-native docs under using a real device. You'll need adb installed, then just enable USB debugging on your phone and plug it in. Run react-native run-android in the command line to send your program to your phone.
Note that these steps may differ depending on how far you've followed to the directions for either expo or react-native.