Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow

Image may be NSFW.
Clik here to view.

React native - how to fix Java.lang Double cannot be cast to java.lang.Boolean

I am running into an annoying issue (Android only) for a couple of days now. This has seemed to happen suddenly. And I can't get around this issue. Please see below my gradle project:buildscript { ext...

View Article


How do I track app usage time in React Native?

I want to track a user's app usage time (other apps) in React Native. android.app.usage tracks what I want. Is it possible to use android.app.usage in React Native or do I have to make my own module?

View Article


React Native iOS screens stop rendering after navigation (works fine on Android)

I’ve built a small Amazon Price Tracker app in React Native. The app is fairly lightweight and not CPU-intensive:Uses React NavigationScreens:Home Screen → lists tracked productsItem Edit Screen →...

View Article

onRegionChange / onRegionChangeComplete not firing in react-native-maps

I am using react-native-maps and facing an issue where none of the MapView events are firing— including:onRegionChangeonRegionChangeStartonRegionChangeCompleteonPressonPanDragThis happens even though...

View Article

Image may be NSFW.
Clik here to view.

Sign in to confirm you are not a bot on react-native-youtube-iframe

I am using react-native-youtube-iframe in my react native mobile app and up until now I had no issues embedding youtube videos. We had iOS app released at first and just two months ago we released the...

View Article


How to Convert File URI to Content URI in React Native Expo?

Previously, we could convert a file URI to a content URI using `getContentUriAsync()` with `expo-file-system`. This method is now deprecated. How can we do this now?

View Article

CPU profile of hermes / JSC on release apk of react native app

Is it possible to do a CPU profiling (Flame graphs and call stack measurements in chrome performance tab) of the JS runtime in a react native app (hermes or old jsc) which is run in a release apk. I...

View Article

unresolved reference : BuildConfig in Kotlin

So I started a new android application,here is my Android Studio infoAndroid Studio 3.6.1Build #AI-192.7142.36.36.6241897, built on February 27, 2020Runtime version: 1.8.0_212-release-1586-b04 amd64VM:...

View Article


React Native Android app not connecting to Metro Bundler

I'm trying to run my React Native app on Android using installDevDebug, and then starting Metro with:npx react-native-startMetro seems to bundle the app correctly (I can see in the console that the...

View Article


Image may be NSFW.
Clik here to view.

How to update the version number of a React Native app

I am using React Native with Android. How can I update the version number in the app? As I am getting this error.I am generating file as per this URL:...

View Article

How I can specify the priority on FCM message?

I'm using react-native-firebase to manage notifications on React-native app.I try to handle FCM message on the background when application is off without display the notification.I’m using...

View Article

Invariant Violation: TurboModuleRegistry.getEnforcing(...):...

Invariant Violation: TurboModuleRegistry.getEnforcing(...):'RNGestureHandlerModule' could not be found. Verify that a module bythis name is registered in the native binary.Bridgeless mode:...

View Article

ZoomView fails to render remote video consistently and freezes when camera...

Describe the bugRemote users' video rendering is intermittent on iOS devices when using @zoom/react-native-videosdk. The video feed from remote participants randomly works - sometimes it displays...

View Article


Bring View on top of Modal using zIndex style with React Native

zIndex has been introduced recently to React Native to change the position of a View in the stack of layers.Although, I'm not able to bring a View on top of a Modal component.My code looks like...

View Article

Task :app:mergeExtDexDebug FAILED error without code changes

My react native app (RN 0.71, AGP 7.3.1, Gradle 7.5) compiled on android without issues last week.This week when trying to compile again without making any changes to the code and the machine i get the...

View Article


React Native: Failed to launch emulator - "The emulator quit before it...

I'm encountering an issue while trying to run my React Native project on Android using npx react-native run-android. The error message I'm receiving is:Failed to launch emulator. Reason: The emulator...

View Article

How to properly install library from maven central in react native project?

I’m trying to add the swedbankpay-pax-sdk dependency from Maven Central. I’ve includedimplementation "com.swedbankpay.pax:swedbankpay-pax-sdk:1.2.51"in android/app/build.gradle, but I’m still getting...

View Article


query component stuck in loading state react native

We are using apollo graphql client in react native project. This Query never completes although it's working fine in IOS device & android emulator but not on actual android device.<Query...

View Article

Targeting R+ (version 30 and above) requires the resources.arsc of installed...

I am trying to update android target API from 29 to 30. I have updated:compileSdkVersion = 30targetSdkVersion = 30buildToolsVersion = "30.0.2"The app is aligned with zipalign -p -f -v 4 before signing...

View Article

React native "Attempt to invoke virtual method...

I'm trying to incorporate Twilio voice using the react-native-twilio-programmable-voice package. My app loads on ios, but when running on android I get this error message Attempt to invoke virtual...

View Article

Embedding Youtube Videos in React Native Application

I understand this is a highly documented issue and I have been trying to find a solution, but everything that I have found online so far has not worked. So I wanted to show what I have tried to do and...

View Article


Screen orientation locking does not work on React Native 0.82.1 (New...

DescriptionI cannot programmatically lock or change screen orientation on Android. I've been struggling with this for days. Calls like lockTo(portrait) or lockTo(landscape) have absolutely no effect —...

View Article


React Native app not opening from Samsung Knox lock screen despite...

I am developing a React Native application for a telecommunications company. The app allows users to purchase Samsung devices in installments. If a user fails to make a payment, the device is locked...

View Article

Read a Push Notification using Expo from a cold start (when app is killed)

I have an Expo standalone app and I am sending Push Notifications from my server. I have a notification listener in my App.js componentDidMount like so.componentDidMount = () => {...

View Article

How to change styling of TextInput placeholder in React Native?

Is there a way to set fontStyle: 'italic'only for the placeholder of the TextInput in React Native?looking here at the documentation seems like you can only set a placeholder and placeholderTextColor.

View Article


React Native - Native Module - Double param not nullable (Bridge, Kotlin)

I’m trying to create a React Native Native Module using Kotlin. I want to use optional parameters, but the app crashes when I use Double?.Example:React Native:const {add} =...

View Article

React Native Gradle build fails on :app:createBundleReleaseJsAndAssets with...

I am trying to create a release bundle for my React Native Android app by running cd android && ./gradlew bundleRelease, but the build is failing at the :app:createBundleReleaseJsAndAssets...

View Article

Image may be NSFW.
Clik here to view.

Axios showing Error:" Err_Bad_Request" while sending formdata using React...

I'm attempting to send both image data (in Buffer format) and some text using formData from my Expo React Native application to a Node.js server with MongoDB. Strangely, I'm encountering an issue where...

View Article

axios's onUploadProgress and FormData handling on React Native Android can fail

axios's onUploadProgress uses XMLHttpRequest under the hood in React Native, but there's a known issue where axios's FormData handling on React Native Android can fail (it sets the wrong Content-Type...

View Article



React Native: LaTeX Not Rendering Properly Using react-native-math-view /...

I'm trying to display LaTeX math equations in my React Native application. Initially, I tried using react-native-mathjax-svg and react-native-math-view, but none of them seem to render the math...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>