Category "react-native"

React native web support

I have project in react native and it was build in iOS and android successfully. I have not used react native cli for that project. Now I have to give support f

How do catch error on React Native SQLite

I have the code: let dirs = RNFetchBlob.fs.dirs RNFetchBlob .config({ fileCache : false, }) //pega o arquivo da internet .fetch('GET', 'https://U

React native init android,ios and app folder missing

Missing android,ios & app folders and index js files I'm using react native v 0.1.10 in windows 7 OS

java.lang.NullPointerException React Native

I've been trying to build my React Native application for release, but I always get this error: FAILURE: Build failed with an exception. * What went wrong: ja

react-navigation swipe to go back doesn't trigger

I am using stack navigation and I want to use swipe to go back. However, even when I swipe the screen all the way to the right the app doesn't navigate to the p

React-Native: Convert image url to base64 string

I'm building a react native app that needs to store images at base64 string format for offline viewing capabilities. What library / function would give me the

React native Wifi list

Is there a way to scan and all get Wifi list using react native for Android and iOS. I have seen a few libraries but mostly for android and even those doesnt wo

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