Category "react-native"

How to update the access permission using expo for iOS

I read expo's guides regarding applying for permission for the photo folder in the app. I added the correct strings in the app.json file "infoPlist": { "N

'loading' remains true when loading data with 'useQuery' using 'apolloClient' in react-native

I'm trying to fetch data using Apollo Client useQuery in React Native, but loading hangs at true state and fails to fetch data. below is the actual code. App.js

TypeError: Object(...) is not a function (React)

I was following a tutorial on how to add google maps to a react/expo javascript project. I am new to the javascript language and have had a bug that I cannot fi

React native iOS arrow keys

I have a page with multiple inputs, is it possible to add those arrow keys button to the keyboard from React native, so the user can use arrow keys to move bet

Tinder-like swiping in React Native

I am trying to optimize my component which will load a set of Cards based on the data it gets from each element of the array, and I want to implement a Tinder-l

React navigation 5 really slow and dropping JS FPS on Expo

I am currently working on a React Native (Expo) App and I am facing some performance issues. I have not found any answer yet for my problem so I hope someone ca

`new NativeEventEmitter()` requires a non-null argument

I am facing this problem: new NativeEventEmitter() requires a non-null argument I am working on Expo GO (version Expo: 45.0.0) on IOS. The problem is when I i

`new NativeEventEmitter()` requires a non-null argument

I am facing this problem: new NativeEventEmitter() requires a non-null argument I am working on Expo GO (version Expo: 45.0.0) on IOS. The problem is when I i

Gradle sync failed in Android Studio processRequest = (req, res, next) => {

I just come across this issue in a newly created react native project. I'm using node 14.17.0 via nvm. And running yarn start worked just fine from the Mac term

Why Navigation.goBack() not working properly?

I am using following way to create navigation system StackNavigator -> DrawerNavigator -> (Screen A, Screen B, Screen C) Screen A is initial Route Scre

Animate component unmount fade-out in React Native

On a React Native application, given a condition is true I should render ComponentA, else ComponentB should be visible instead. const ParentComponent = () =>

sending props to @react-navigation/drawer component

I am trying to send prop to component inside Drawer.Screen. I am using @react-navigation/drawer. I finally send props to navigation container but I cant send pr

ScrollView programmatically scroll on button press in react native

So I manually created an onboarding screen in React Native using ScrollView and also I added a button labeled next to enable the hidden screen to move in on the

TypeError: navigation.toggleDrawer is not a function. (In 'navigation.toggleDrawer()', 'navigation.toggleDrawer' is undefined) this error occured

TypeError: navigation.toggleDrawer is not a function. (In 'navigation.toggleDrawer()', 'navigation.toggleDrawer' is undefined) I've called this function as chil

Drawer Navigaiton React Native

ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the applicati

How can i remove extra white space in expo BarCodeScanner

iOS is working fine BarCodeScanner take full screen but when i use android there is extra white space. <BarCodeScanner onBarCodeScanned={scanned ? undefin

TypeError: null is not an object (evaluating 'NativeClipboard_1.default.getString')

I want to use @twotalltotems/react-native-otp-input in my expo project. I have go through with the documentation of @twotalltotems/react-native-otp-input But I'

Video can't press play on React

I have a working product that takes a file from API and read as a blob. But pressing the play button on the video does not work. I have tried using tried using

why does this log the old value and not the new value [duplicate]

const [title,setTitle] = useState(""); const titleHandler=e => { setTitle(e.target.value) console.log(title) } Why does this code log

React Native: FlatList is not showing

I am trying to make a custom component that will display options for a new choice if the first choice is not clear enough. I am using the FlatList component to