Category "react-native"

FlatList moves/drags in all directions

When I click on my FlatList I can drag and move it in all directions (up/down/right left). Although the list appears to be vertical (maybe because of the stylin

How to reduce size on QR code scanner, customize QR code scanner

How can I reduce the size of my QR Code scanner. When I am trying to apply style prop, its not working In below code my scanner is working but it is coming on f

Infinite loop with a useEffect in React native [duplicate]

I have a problem, on the two functions below, when I check the debug of my request, there is an infinite loop of my GET request and I don't un

React Native Drawer Item I want to set icon right side via

Please check screenshot 1 - Screenshot of Code 2 - Screenshot of Sidemenu

React native swipe animation not working and no error

I'm using a swipe animation, the same one that is being used in apps like tinder. The animation used to work in a Class component and in JSX but I had to change

Expo app icon instead of my app icon - react native

SDK Version: 41.0.0 Platforms(Android/iOS/web/all): android Add the appropriate “Tag” based on what Expo library you have a question on. Hi Guys, I&

Read-only file system error when try to install pod on macbook m1

I'm trying to install react-native app on ios emulator but i have an error say it have no podlock, so i find solution here No `Podfile' found in the project di

React Native Text style is not working (Icon Badge)

I tried to make a badge icon with red text, but all the styles I applied to the Text didn't work at all IconWithBade.js import React from 'react'; import {Style

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