Category "react-native"

How to create a string array in the useState hook and update that same array in TypeScript?

I have a React project where I am trying to create a multi select function where you can select and deselect multiple avatars at once. So far I have this: expor

Multiple LineLayer Colour doesn't change in the ShapeSource

I have use the MapBox to draw multiple lines with different coordinate, So I use the ShapeSource layer and LineLayer for this, Currently I have take one ShapeSo

OpenCV Android React Native unknown exception on some functions in imgproc module

I'm trying to use OpenCV in an mobile app written with React Native. For now i only focus on the Android part. I use the official OpenCV for Android release. I

How do i use localstorage in React native?

I have a web app that I want to convert to an native app with react native. So I started the project and all the logic is the same as the web-app but i don't kn

Task :app:bundleReleaseJsAndAssets FAILED - React Native - Android

Getting this error in my React-Native app when I run on Android using npx react-native run-android --variant=release or generate a Release Build. I tried whatev

orientation change listener in expo react native not firing?

i want to detect the current orientation of device in expo react native, this is my code that doesn't work: import { Dimensions, } from 'react-native'; import

Error: {"data": "foreach() argument must be of type array|object, string given", "message": "" in React Native

i have to send this Array object to the API when i post the API data it shows me this error: Error: {"data": "foreach() argument must be of type array|object,

How to render conditional with classNames with Reactjs

I am trying to use classNames to replace the conditional below in one line. My problem is that i am not sure what is the right way to write the code because of

How to persist Expo Audio throughout react native app?

I am new to react native. I am trying to make a podcast player. While I was able to make it work in my Podcast component, when I change to other component, the

Native module in React Native: function returns "undefined"

So, I am practicing making native modules in Java that can have functions exposed to the JavaScript code of React Native. For that, I decided to go for a simple

react native maps - showsMyLocationButton not working on IOS using MapKit

If I use enter the provider prop in MapView component as provider="google"..then my OIS app happily uses google maps and the showsMyLocationButton works (i.e. a

useSelector of React Redux don't update state of store on expo react-native

I made the same model on the web and it worked, I tried to use shallowEqual of Redux as second parameter of useSelector function, also the _.isEqual of lodash

How to make React Native Component background transparent?

I am using Tab Navigation which contains two screen, I need to make the background of each screen transparent so the app background is visible. This is how it l

React-Native panResponder array with functional component

I have a slider with 6 images and I want to be able to move each one of them using panResponder. I wrote this code (which works, but it moves all the slider, no

how to override drawer navigation?

i'm trying to implement drawer navigation and bottom tab navigation. I used "@react-navigation/drawer": "^6.4.1", "@react-navigation/bottom-tabs": "^6.3.1", fo

Execution failed for task ':react-native-geocoder:verifyReleaseResources'

Hi I am trying create release apk , here I have used react-native-geocode, but while creating build getting bellow error Execution failed for task ':react-nat

How can I initiate user logout after 5 minutes of inactivity?

I am trying to log out and invalidate the user token after 5 minutes of inactivity. When the application is on 'active' stage I am using the react-native-user-

TextInput got hides behind keyboard in react-native

I am creating chat UI in react native in which I want the first section (where the messages are shown) should be scrollable. The TextInput should be at the bott

node_modules/.bin/react-native run-android --no-packager' (error code 101) (error code 303)

I am not able to solve the above error when running Android build by debug config or by command npx react-native run-android. I have checked and Configured the

react native map is not updating custom style directly

I have created a custom map style using react native maps but sometimes it shows a default map for 1-2 seconds then a new style will update. Is there any way we