Expo Client Not Getting Installed On Mac? - android

The below command to install expo client in the official react native documentation fails.
npm install -g expo-cli
The error shown is attached as a screenshot below.
Someone please tell me how to solve this the github issue below they are pointing to has no answers for this.
https://github.com/request/request/issues/3142
its like if someone new tries to develop on expo its not possible ??

It's just a warning and there are plenty in the React Native ecosystem.
What do you mean by:
its like if someone new tries to develop on expo its not possible ??
Using expo client to work on your own React Native application
or
Developing features/fix for the expo sdk?
It's working on my machine
❯ expo --version
3.15.4

Sorry,
But looks like if you wait for some time the installation of expo client continues even though at first it looks stuck and points to a github issue.
But why that delay and confusion in a widely used platform it should be avoided.

Related

Problem initializing project in ReactNative CLI

My name is fernando and I'm studying mobile development via React Native
I'm having trouble using the React Native CLI, as I couldn't solve this problem I decided to do all the steps from the recommended https://reactnative.dev/docs/environment-setup again to run the code.
I uninstalled Java, node, Android Studio, JDK and gradle.
I installed Java, Node and Java using Chocolatey as recommended by the documentation, I strictly performed all the steps requested but I cannot install the application on the simulator or on the cell phone via USB
Starts NPM START normally without errors.
But when starting NPM RUN ANDROID it gives me the following error
enter image description here
OBS:
The project in question in the image, has no code, it was only opened using npx react-native init AwesomeProject
Another observation that I can run and program using React native EXPO GO
It works without errors and I can run both in the simulator and in USB
Thank you and I would appreciate it if someone could help me

react-native-google-mobile-ads with Expo managed workflow will not work

I have followed all of the most up-to-date guides and suggestions for getting react-native-google-mobile-ads to work with an Expo managed workflow, including these:
How to use react-native-google-mobile-ads with Expo?
How do I use react-native-google-mobile-ads with Expo and Expo Go?
But I keep getting the same error:
ERROR TypeError: null is not an object (evaluating 'RNAppModule.eventsNotifyReady')
It would seem that this error originates in this jest.setup.ts file:
https://github.com/invertase/react-native-google-mobile-ads/blob/main/jest.setup.ts
but I have no idea what the error is or how to overcome it.
This error happens when I initiate interstitial.load() as per the official documentation.
Any help would be greatly appreciated.
Ran into this same problem. Turns out the command to use was hidden in their docs at the end of the build steps without any explanation.
https://docs.page/invertase/react-native-google-mobile-ads#setting-up-google-admob
Using react-native-google-mobile-ads, Expo Go will no longer be able to handle linking all the native dependencies. So you'll have to use EAS to build it. Per the docs, you can use npx eas-cli build --profile development to build for development. Alternatively, to install locally rather than on EAS servers, add the --local flag to that command. Just note that if building locally you may need to set the Android SDK path following the instructions to edit your eas.json at Expo build EAS - local - SDK location not found.
After building for Android (I don't have a Mac so I can't speak for development on iOS), it generates an apk which you need to install on your device. I'm sure there's a way to install this on an emulator too.
Once you've opened that app, it will direct you to start a development server using expo start --dev-client. This will run a dev server similar to the usual Expo Go. It pulls up a QR code which you can scan and it will take you into your app. Hot reload works as expected too. Doing this my test banner ad showed up without any errors.
The same solution is discussed here.

Problem after linking Firebase to a React Native app

I am trying to link my react-native app to firebase and work on the auth module.
I followed the steps of the installation in https://rnfirebase.io/
It works when I run npx react-native run-android
But when I use expo start to work on the pre-production app I always get the error you attempted to use a firebase module that is not installed firebase.app()
After working on this problem for while, after solving it, I would like to share my answer.
The library https://rnfirebase.io/ does not work with a managed workflow like Expo, so be sure to use the bare workflow to work with the library.

Sentry Upload Fails in Android Studio

I'm new to sentry. I have a react native mobile application from react native version 0.59. I have set up sentry for the mobile app as per this guide.
https://docs.sentry.io/platforms/react-native/
When I ran the react native bundle command and try to create an android build using android studio following error comes. I searched in google and couldn't find a proper answer for my question. Does anyone know how to fix this issue.
did you execute the sentry-wizard command and did it work? if yes, then please, export the system env. SENTRY_LOG_LEVEL as mentioned in the error message and paste us the full log so we could have a look into it.

React Native without Android Studio?

Is there any way to develop a React Native app for Android without installing Android Studio ?
On Ubuntu 18.04 the apt command proposes a lot of android packages: android-sdk, android-sdk-platform-tools etc...
What do I need exactly to get React Native working properly ?
Please don't use expo or another SDKs of react native. React Native CLI is recommended everywhere because its performance is not comparable to expo and it is much more lightweight! Android Studio is just an IDE! If you setup your android development environment correctly there is no need to install Android Studio IDE (This is for experts!) but it is recommended to install for amateur users.
If you don't want to use the Android studio, you can take advantage of the Expo. Expo is the best way to assist React-native. You can run the app without the Android studio, and when you refresh, you can see the modified code right away.
Look at this official document and follow it slowly.
you don't need Android Studio at all, if you are using react native cli you can install it on your phone and run it there.
An attempt of solution to use react native without android studio and without expo is to build directly in your device.
you must install adb first by following this link install-adb-fastboot-on-ubuntu 18.04
and then you should follow this link react-native running-on-device
It will help you.
I'm using usb cable to install debug apk in my phone (react-native run-android). I put my phone in the same network (WIFI) with my machine (server) and configure the server address and port to debug remotely in the phone. After that i remove the usb cable.
In short everything is explained on the link above

Categories

Resources