ERR03 : Internal error react-native-android-location-enabler - react-native

I'm facing an issue with a very rare use case. I have been using the package for 2 years in our app and haven't faced any issues till now.
But, now I'm facing an issue while trying to enable the location of the device from the app.
The popup is not coming up and the error says ERR03: Internal error
The very interesting thing here is, with the same version of the package, there is no issue with the apk created 10 days ago. If I create an apk with the same code I'm facing the issue now
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-android-location-enabler": "^1.1.0",
"#react-native-community/geolocation": "^2.0.2",
Can someone please help and give a solution for this
Hi have tried creating a new project and use the same version of the npm location package. It is working fine but with the above scenerio I'm facing the problem

Related

Could not find any matches for react-native:0.64.+ Required by:project :react-native-video

Could not find any matches for com.facebook.react:react-native:0.64.+ as no versions of com.facebook.react:react-native are available.
Required by:
project :react-native-video
I have tried upgrading and downgrading react-native-video and react-native version !!
Currently choosen following API's in package.json.
"react-native": "0.64.4",
"react-native-video": "^5.1.1",
Kotlin version - 212-1.7.10-release-333-AS5457.46.
Android Studio Chipmunk 2021.2.1 Patch 2
Everything was working fine till 2 weeks back , anything changed recently ?

Gradle error in resolving react-native-reanimated dependencies

I am facing the error below in the picture when I am trying to build my react-native app on android emulator.
To give more detail it gets stuck in configuring phase when performing:
(:react-native-reanimated > Resolve dependencies of :react-native-reanimated:classpath > gradle-7.3.0.pom)
(By the way, ios simulator works perfectly fine!)
Version of the packages that I am using:
"react-native": "0.70.1",
"react-native-reanimated": "^2.13.0"
Can anyone help me with this?
Well I am going to post the answer myself, but this will only be useful for developers who work in locations in which google services like Android are sanctioned.
The problem was simply my internet connection being unable to download the react-native-reanimated:classpath.
So to solve this issue or any other similar issue in the configuration phase, you have to use a VPN to change the source of request to be able to download the required packages to get your build.

React Native error - Unable to resolve module `./tab-bar-item-ios`

Ive just upgraded react-native-vector-icons from version 7.1 to 8.0......and now Im getting the following error:
unable to resolve module `./tab-bar-item-ios` from `node_modules\react-native-vector-icons\lib\create-icon-set.js`
None of these files exist:
* node_modules\react-native-vector-icons\lib\tab-bar-item-ios(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx).........etc
Im testing on real Android device, using a windows computer.
Any ideas?
It's a cache problem, you can fix it running:
react-native start --reset-cache
Created this account just to answer your question hehe, i know how frustrating those errors can be.
Did you use caret(^) when specifying version of react-native-vector-icons?
I had same error message and it worked for me after removing '^'
"react-native-vector-icons": "^8.0.0" => "react-native-vector-icons": "8.0.0"

React Native - App is Crashing when opening Tabs

My App always crashes in Android Emulator.
Every time I navigate my App into Main Tabs my App Crashes with an error.
I think this is not caused of the React Native Navigation, I think because of the React Native Vector Icons because in Android it requires to Add Icon for the Tabs. This error just suddenly appear without changing any of my codes.
This is the error from React Native Debugger:
Uncaught (in promise) TypeError: Iterator value v is not an entry object
at new Map (native)
at file:///D:/Downloads/rn-debugger-windows-ia32/resources/app.asar/js/bundle.js:9:8044
at anonymous
These are my Dependencies:
"react": "16.6.3",
"react-native": "0.58.6",
"react-native-maps": "^0.23.0",
"react-native-navigation": "^1.1.493",
"react-native-vector-icons": "^6.4.1"
Feel free to ask for my codes and any questions. Thank you!
Usually this error happens when debugging via RND. If this is your case try the following:
Try to close and open debugger again. For some reason it fixes the situation sometimes.
If your debugger`s version is out of date try to update it.
Finally the step that usually works if the previous didn`t: reinstall react-native-debugger and clean your cache (npm start -- --reset-cache).
To reinstall RND (OS): brew cask reinstall react-native-debugger.
For windows use standard procedure of deleting (via Control Panel) and then installing RND again.

Cannot Convert Existing React Native to Expo: error with nativeVersion.major

Just downloaded the newest version of Expo XDE(2.20.1) and trying to convert an existing react native project into it. I followed precisely these steps, and when opening the app in Expo client on a real device, I got an error saying:
undefined is not an object (evaluating 'nativeVersion.major')
The problem happens both on Android and iOS.
Seems expo has a strict requirement of react/react-native versions, but unfortunately, I cannot find the version requirement list.
My current dependencies (which are quite up-to-date) are:
"react": "16.0.0",
"react-native": "0.49.3"
So, does this error indeed came from version conflicts? And if so, how do I solve the problem?
Your JS dependencies need to match the native code. With Expo SDK 21, which is based off of React Native 0.48, you can either use (recommended):
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz",
or:
"react": "16.0.0-alpha.12",
"react-native": "^0.48.4",
It's important you are careful with the versions when you update your dependencies. The upcoming React Native 0.49 (supported with Expo SDK 22) needs to use React 16.0.0-beta.5.
It might be easiest to create a new Expo project from scratch, then copy over your components. I've done this several times myself, and it's far easier than fighting whatever edge condition has affected you.
Remove your iOS build (./app/ios/build) folder and re-build.