Category "react-native"

How to build react native apps specific to an environment in nx.dev

I used nx.dev for my react native application, I have configured the 3 environments. Dev, QA, and Staging. Added productFlavors for the same. ENVFILE=.env.qa &a

React useCallback() not working as expected

I'm trying to understand useCallback() a bit better by creating a simple React app and playing around with it. I tried wrapping handleClick function in useCallb

React Native update component

I'm pretty new to react-native. When I click the stop sleep or info button I send patch requests to the users.json file to change the status. My JSON file conta

Convert a string to number with parseInt does not work as expected [duplicate]

A quick maybe simple question : We are trying to parse a string into number , the sample number is "1928433000460244141" so when we try to par

Null Object Reference: Attempt to invoke virtual method 'booleanabi44_0_0.com.facebook.react.unimanager.FabricViewStateManager.hasStateWrapper()'

my code suddenly stopped working, when I navigate to a login screen the app crashes with this error. although I tested the app yesterday before wrapping up and

which API provide this type of coordinates in mapbox API for the polygen

[enter image description here][1] which API provide this type of coordinates in mapbox API for the polygen [1]: https://i.stack.imgur.com/moiSV.png

VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders

Im working on a react-native project and what I'm trying to do is for the user to have the possibility to select phone numbers in his contact list. When the use

how to style children elements in react native?

is there a way to select children of the element I am styling in react native? css example of what I am trying to achieve: div > *

I am getting an error in my npm when trying to install expo-cli globally

When I try to install npm globally, using the command npm install -g expo-cli I am getting an error that says npm install -g expo-cli npm ERR! code ERR_OSSL_U

Top tab navigator failing (React navigation 6)

I am just having an issue with exporting the navigator. I have a Stack navigator where I am nesting also a Drawer navigator and now I want to do the same with T

React Native iOS build failed at AppCenter

Our React Native iOS project has been working well with AppCenter build. But when we pushed certain changes, although it still works well locally, the build at

React native wont run after ejecting from expo

I developed an app using the managed expo workflow, however it's required to use a native apis (in this case WebRTC) and therefore I ran expo eject to switch to

How to remove Async storage warning from react native

Dependencies i used "dependencies": { "@react-native-async-storage/async-storage": "^1.16.1", "@react-native-community/netinfo": "^8.1.0", "@react-navigation/bo

React Native map with Google API, Search bar is not compactable with screen width

This is the code for React Native Map using Google Map's API. import React, { useEffect, useState } from 'react'; import { PermissionsAndroid, StyleSheet, View,

How to add random minutes like first slots should be 30 minutes and then 1 of 15 minute slot and again 30 minute slot

const eventClick = (args) => { let StartTime = moment(args?.event?.StartTime, 'HH:mm ') let EndTime = moment(args?.event?.EndTime, 'HH:mm ') if (

TouchableOpacity wont work as supposed in android

I got an app with flatlist ,I added to the app TouchableOpacity that covers the whole screen, works great when I click on item area but doesn't work when I clic

Every time i refreshes my app it logs out even though i've used this onAuthStateChanged. Below is my code of loading screen

I'm using this screen to navigate between two screens by using the onAuthStateChanged but still every time It refresh the app it logs out even though I'm not lo

How can I check the TextInput change completed in react native

Basically, I need to hit search API when the text changed but it's not a good thing to call API on every change in TextInput. So, is there any callback function

How can I write this function into my existing code, Keep getting a promise rejected error

Hi I am trying to Include the function below into my existing code so that after the users are filter based on matching city they will be filtered by the most m

I'm encountering a problem when trying to set up a 'nested/nesting' build in react native

To see the drawer structure on every screen and I want to see the homepage and choose page in the tabs navigation section. For this, I set up a structure like t