Category "react-native"

React Native Android run causes "Illegal number of arguments for updateHotspot command"

I am creating a simple app using React Native for both iOS and Android. I've tested both platforms for a while and all works very well. But recently, I was focu

React Native: 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compat

Hello everyone I am trying to create and run a react native app. I run npx react-native init rn4 but when I run npm run android I have this error: > Task :re

Is it possible to capitalize first letter of text/string in react native? How to do it?

I have to capitalize first letter of text that i want to display. I searched for it but i cant found clear thing to do that, also there is no such props for tex

Not getting updated redux-persist state inside React-navigation useFocusEffect hook

I am using react-navigation(5.6.1) with redux-persist(6.0.0) on my react-native project. One of my reducer is persisted(profile). I added a focus event listener

React Native - pod install issue "cannot load such file.......node_modules/react-native/scripts/react_native_pods"

when I have a react native project....and when I run pod install it gives me the following error Invalid `Podfile` file: cannot load such file -- /myPath/node_m

An error occurred while creating the AVD. See idea.log for details. ubuntu 16.04

I followed the the link below, to create a android virtual device(AVD). https://developer.android.com/studio/run/managing-avds.html As soon as I click on fini

How to adjust font size to fit view in React Native for Android?

How I can make the font size of the text auto change inside a view in react native? I have text with different lengths, some of which doesn't fit the view so d

Unsubscribe from watchPositionAsync with useEffect return function

Using react native with expo-location for a mobile app, I would like to unsubscribe from Location.watchPositionAsync which returns a promise with a remove() met

React Native - Use a keyExtractor with FlatList

I have been getting the: "VirtualizedList: missing keys for items, make sure to specify a key property on an item or provide a custom keyExtractor" pretty c

Fetch not sending Authorization header in ios

I use two fetch functions, one to log in another get data from my API. login works fine but the second fetch throws an error in ios. it works fine on android

React Native -- Could not determine the dependencies of task ':app:mergeDebugAssets'

I'm trying to run my project with the npm run android command and it throws this error for me: info Running jetifier to migrate libraries to AndroidX. You can d

Keyboard is not opening automatically though autoFocus={true}

I have a TextInput inside a Modal with autoFocus={true}. As soon as Modal is opened TextInput is focused automatically but keyboard is not opening automatically

React native build failed on `ios` when `react-native run-ios`

I am getting this when I am trying to run app on ios simulator. can any one guide me what is reason/solution for this issue. The following build commands failed

React Native Teleport components without loosing state

I am using React Native 0.62 with react-native-video. I need to add a video player with full screen option. The requirements specifically needs custom controls

Using a function on stylesheet typescript react native

I try to use some variables inside my StyleSheet file. The UI is working fine. But the type is error. Any idea how to solve this? type buttonStyle = (height: nu

How to logout from facebook with LoginManager provided by react-native-fbsdk?

In simple, how does one log out with LoginManager provided by react-native-fbsdk? If we look the code inside that LoginManager provided by react-native-fbsdk,

Invariant Violation: "main" has not been registered

New to React Native: I started a brand new project with Expo init and then I followed the instructions mentioned inhttps://reactnavigation.org/docs/hello-react

React Native: Error: Package name not found

After integrating RN into an existing Android project, I get the following error: Error: Package name not found in /home/.../AndroidManifest.xml at Object.pr

Reanimated,Tinder swipe clone : how can I get the initial user information before swiping the cards?

I got stuck here , I am using the third library : yarn add 'react-native-reanimated' And I am tried to make a tinder clone swiping cards as below: In my case ,

How to multiple TextInput handle with single handler?

I have create common class for TextInput and use it multiple time but its event handle with same method. i want to handle array data after filled the data in te