Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Browsing all 28474 articles
Browse latest View live

React Native (Android Native Module): Get access to ReactContext in another...

I want to call a method in MyCustomModuleClass extends ReactContextBaseJavaModule from another ClassMyCustomModule.javapublic class MyCustomModule extends ReactContextBaseJavaModule { private...

View Article


How I get state from reducer in action for get name using redux

Here is my code below:`action.JS` export const stockList = (id) => (dispatch) => { dispatch({ type: STOCK_LIST }); // alert('api called') callApiStockList(dispatch) }; const callApiStockList =...

View Article


How to create a React Native package which has an Android Library module?

I want to create a React Native package with native modules in it. The Android part also should have a Android Library module added to it. How do I do this?I have tried adding in the dependencies block...

View Article

React Native Android build failed after upgrading 0.51 to 0.64

I have updated my react-native project from 0.51.0 to the latest version. After updating everything clearly as mentioned in the documentation, I am getting below error when I try to run my app. I...

View Article

React-native-gesture-handler swipeable is not working on Android

Here is my code.App.jsimport Swipeable from 'react-native-gesture-handler/Swipeable'; const RightActions = () => { return ( <TouchableOpacity onPress={() => console.warn('works'))}>...

View Article


Not able to bundle application using react-native start

I was getting one error :Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for releaseSo I have fired this command :...

View Article

Issue in AES encryption for android - dev vs release build using...

import CryptoJS from "react-native-crypto-js"; //encryption function used in react native code base export const encryptValue = (text) => { try { const key = 'J4f9eO8ayjjEtamRBxSSmsDqXBele1zl' const...

View Article

Fetch request displaying response on iOS but not working with android

I am trying to send a response from a fetch request using React-Native for client-side and Node/Express for the server. Unfortunately, the value is only displayed with iOS emulator and not with...

View Article


Image may be NSFW.
Clik here to view.

React native async storage error: package...

Anyone familiar with this error when migrating over to Androidx ? The error points to the @react-native-community/async-storage.error: package com.facebook.react.module.annotations does not existI'm...

View Article


Image may be NSFW.
Clik here to view.

expo keeps stopping android emulator

I am running an expo app on windows 10 using the android emulator. The tunnel builds, and the simulator starts. but expo keeps crashing on the simulator. I tried uninstalling expo off the simulator,...

View Article

React Native Duplicate class com.google.android.gms.measurement.internal.zzhw

I just did few changes in JS side of my project without updating any packages or something but now I get these errors..Task :app:checkReleaseDuplicateClasses FAILEDFAILURE: Build failed with an...

View Article

i get 'com.facebook.jni.CppException: Could not get BatchedBridge, make sure...

com.facebook.jni.CppException: Could not get BatchedBridge, make sure your bundle is packaged correctly at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at...

View Article

Image may be NSFW.
Clik here to view.

React Native - Keep React Navigation Stack Header from moving with...

I have a messaging page in my application that is part of a React-Navigation-Stack and has a header with a back button. The messages are contained within KeyboardAvodingView and ScrollView, but when I...

View Article


React native fetch api does not work with localhost, IP, or even 10.0.2.2

I am using expo client on my android device and have setup up a django server at localhost:8000 and i'm trying to access and endpoint using fetch in react native. I have looked at How can I access my...

View Article

"Getting Started" Guide for React Native Not Working with Android Device

I've been trying to get the basic React Native program up and running on my Windows PC, and cannot get it to load on my Pixel 3 which is connected through USB. I've done a fresh install of Node.js to...

View Article


How to create android widget using react native?

Is it possible to make android widget using react-native? I have done some search to find an approach but only find this repoIs it any other approach to make android widget using react-native?

View Article

Image may be NSFW.
Clik here to view.

How to reduce Reactive Native app memory usage in Android

As soon as I run my app, it takes up about 250MB of memory. I checked the heap of android studio byte [], char [], long [] occupy a huge amount of memory. What can I do to my reactive code to reduce...

View Article


Image may be NSFW.
Clik here to view.

ReactNative Metro Bundler not starting automatically

react-native run-android not starting bundler so i tried react-native start it showing below error.┌──────────────────────────────────────────────────────────────────────────────┐ │ │ │ Running Metro...

View Article

react-native push notification onNotification doesn't trigger

I am using zo0r react-native-push-notification library."react": "16.0.0-alpha.12", "react-native": "^0.45.1", "react-native-push-notification": "^3.0.0"This code runs every time I open an...

View Article

Could not find com.google.firebase:firebase-bom:12.0.1

I am migrating from react-native-google-analytics-bridge to react-native-firebase. I followed the steps to add the package to my android project. At first I got an error saying method platform is not...

View Article
Browsing all 28474 articles
Browse latest View live