Realm crashes in react-native for android 10? - react-native

We have recently updated our react-native project to 0.62.2. To perform the linking we need to update the realm version to 6.0.0. It is working fine on ios but it is crashing on android 10 only. Below android 10 it is also working fine. We have realm version 0f 0.29.2 initially. After that we again degraded the version of realm to 0.29.2 then it is working fine. We have also updated the version above 6 also but the same problem occurs.
How can we update our realm to 6.0.0 or any version above it for android 10?

Related

After Expo eas update app is crashing for managed workflow

I updated my expo version from 45 to 47 and created a build using eas and tested it on the device, it's working fine.
But the app crashes(iOS and Android both) when doing OTA using eas update.Also not getting any error while releasing via OTA.
Tried this Github solution but didn't work

Android 12 crash latest react-native-track-player version

After updating app in android 12 and try to run app in android 12 device and simulator facing issue for crashing.
Here is issue.
androidx.media.session.MediaButtonReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Resolve
With use of android:exported="true" fixed issue for run app but service not start once player on in app. so again crash app.
Please check the Github for React-Native-Track-Player.
There is a Beta version for use with Android 12.
Following this question, anyone was able to patch the package to make it work on Android 12? Using a non-final version seems more buggy than just adapting the stable one.

How to use older version of Expo with the mobile app?

i have a project using expo version 30.0.1 i don't want that to change the app was created using CRNA when i try to run npm start and i choose ios or android the expo mobile app on the simulator always gives me an error saying the experience you requested uses Expo SDK v(null) but this copy of Expo Client requires that at least v34.0.0. the author should upgrade their experience to a newer Expo SDK version now i want to run the app as it is with the older expo version, how can i achieve that?
i tried uninstalling the Expo Client app from the simulator but when it reinstalls it installs the newer Expo client app on the simulator. is there a way to tell Expo to install the Expo client on the simulator based on the current projects Expo version?
iOS: according to the Expo support; it’s not possible to downgrade the expo client app on a device (apple does not let you distribute multiple versions of an app at the same time on the app store), but you can install it on your simulator by running expo client:install:ios in your project directory.
Android: you may download the required version from here and install the APK. There is more info here if needed.

How to fix Play Store error about 64 bit binaries when publishing app built Expo / React Native?

I am deploying an app built with React Native and Expo to Play Store and the following error appears:
This release is not compliant with the Play 64-bit requirement.
The following APKs or App Bundles are available to 64-bit devices, but they have only 32-bit native code: 1. From 1 de agosto de 2019 all releases must be compliant with the Play 64-bit requirement.Include 64-bit native code in addition to 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives just the native code it needs.
My Expo version is 27.0.1
Regarding this post https://github.com/facebook/react-native/issues/2814 react-native v0.59 is 64bit compliant (https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059)
and Expo 27 support react-native v0.55.
I'm not an expert with Expo, but can you manually upgrade react-native to v0.59 ? or maybe wait a new version of Expo ?
On July 16th 2019 they stated in 64-Bit Support and Android App Bundles:
We want to let you know that you can now build 64-bit support-enabled .apks that also make use of Android App Bundles (AABs) with SDK33 projects and, of course, with SDK34 upon its release. (Since SDK33 is the first Expo SDK version that uses React Native 0.59, the React Native version that allows for 64-bit support, prior versions of the SDK can’t be updated.)
These updates help us support your new submissions to the Google Play store, which will need to have 64-bit support starting August 1st. Your existing apps won’t need to upgrade to include 64-bit until you need to submit your next app update (though SDK33 has a lot of other fun things you might enjoy!).
Ensure you are running the latest version of expo-cli by running yarn global add expo-cli or npm install -g expo-cli.
Currently, there is no way to fix this. But the Expo Team promised ...
... to add this feature [64-bit binaries] before the deadline.
see here: https://forums.expo.io/t/does-expo-package-64-bit-version/18947

react-native android app gives error , but iOS works

i am new to react native
i followed the instructions on facebook react-native site to install java, Android Studio, SDK and SDK tools
the emulator is up and running , paths are correct. but when running the app i get
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema
the same app IOS runs , i even tried Android USB debugging
help please
anyone?
The problem was Java 9. even though react-native site asks you to install Java SDK 8 or later , then 9 installation doesn't work for some reason. I uninstalled 9 and installed 8 and it worked like a charm
This normally happens when the JDK is not correctly installed or the JAVA_HOME has not properly been set. Make sure to export your JAVA_HOME path. and have a working JDK version running on your computer.