Skip to main content

Questions tagged [react-native]

React Native is a JavaScript library used to build native mobile apps using React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.

66,724 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
28 votes
1 answer
2k views

How can I resolve crash Thread SIGSEGV 0x0000000000000010 in react native

I have an application published in Play Store, I got a crash report but I can't figure out how to resolve it, Trace: Crashed: Thread: SIGSEGV 0x0000000000000010 at (Manquant)() at (Manquant)() ...
Yacine's user avatar
  • 743
23 votes
1 answer
4k views

Firebase & iOS 14 > Will dynamic links tracking and campaigns continue to work?

As most of you are probably aware, iOS 14 will basically put an end to app acquisition tracking as we know it. Here are two great articles that explore the issue in length: The App Attribution ...
bend's user avatar
  • 1,404
22 votes
1 answer
1k views

React native (expo) web view Error net::ERR_CACHE_MISS

I am using react native(expo) and try to use web view package And i am getting this warning in console and didn't see anything on mobile screen. "sdkVersion": "36.0.0", "expo": "~36.0.0", ...
user avatar
21 votes
1 answer
3k views

Setting up Detox with Expo on Android

I'm trying to set up Detox with Expo on Android emulator (Genymotion) but I have an error that I can't go through.... I've installed the necessary packages : Detox detox-expo-helpers expo-detox-...
Toto NaBendo's user avatar
21 votes
3 answers
4k views

React Native - There is no route defined for Login

I'm learning to react native by configuring tabNavigator, DrawerNavigator, and StackNavigator into one without NativeBase or Expo with a single react-navigation library. I achieved it but there was an ...
ravi's user avatar
  • 1,200
20 votes
1 answer
4k views

view has a shadow set but cannot calculate shadow efficiently

I'm getting this error message: >View #54 of type RCTView has a shadow set but cannot calculate shadow efficiently. The error message is clear, except that I don't know which view is #54?!? Is ...
Pavle Lekic's user avatar
  • 1,112
20 votes
1 answer
1k views

How to get the Image URL of rct-image-store to upload image through api

How to get the image url from the rct-image-store? I cropped image using ImageEditingManager and it returned me rct-image-store://0. Now I need to upload this image to the server. How do i get the URL ...
Aakash Sigdel's user avatar
19 votes
4 answers
6k views

Prevent FlatList scrolling when new items are added

I have an inverted vertical FlatList in my chat app, which shows the newest message at the bottom and the oldest message at the top (like all other chat applications) The problem is when I want to add ...
SiSa's user avatar
  • 2,653
19 votes
2 answers
3k views

How to wrap multiple stack screens with context provider in react navigation 5?

I would like to achieve something like the following but it is not possible because stack navigator accepts only Stack.Screens as children. <Stack.Navigator> <Provider1> <Stack....
sniib's user avatar
  • 252
18 votes
0 answers
2k views

Why does `Podfile.lock` change `SPEC CHECKSUMS` section on `pod install` when nothing has changed?

I don't check in my Pods dir into source control. If I run pod install, touch nothing, and then run pod install a few minutes later the SPEC CHECKSUMS section of my Podfile.lock changes. Why? pod --...
rynop's user avatar
  • 52.4k
18 votes
0 answers
1k views

Vscode breakpoints in TypeScript files not hit in React Native

I have a React Native 0.61 project, TypeScript 3.6.2 and Vscode 1.38.1. Here is my launch config: { "name": "Debug iOS", "cwd": "${workspaceFolder}", "type": "reactnative", "request":...
Can Poyrazoğlu's user avatar
18 votes
1 answer
12k views

"malformed calls from JS field sizes are different" error on Android - react-native

I'm using React-Native.I'm living trouble with Picker component on Android. I use Picker from Native-Base Library. Here is my Picker code with it's parent view. <View style={{height: 40, marginTop:...
Ali Zeynalov's user avatar
  • 2,967
17 votes
1 answer
2k views

Cache/preload SVG files react native

I'm using React Native SVG and using the implementation with svg files (url to implementation). Is there any way to preload/cache this svgs? I have a component that imports several SVGs and it freezes ...
aabcabca12's user avatar
17 votes
1 answer
2k views

How to cold start a React Native app over device lock screen?

I'm building a VoIP app on React Native, which detects incoming calls using push notifications. I need to start the app and bring it to the foreground on receiving a push notification. I'm able to ...
glocore's user avatar
  • 2,064
17 votes
3 answers
3k views

Different package versions for Android and iOS

I am developing an app for both Android and iOS using React Native. One of the libraries I'm using is a bit problematic because the app only compiles correctly: ...on Android when using "react-...
Dev-iL's user avatar
  • 24k
17 votes
1 answer
2k views

react native is there a way disable rtl in a specific view or maintain the same look

I have a flatlist rendering a view bellow <TouchableOpacity style= {styles.AdRow} onPress={() => this.Navigatioe(item.id)}> <View style = {styles.LeftItems}> <Image source={{...
Abd's user avatar
  • 568
16 votes
0 answers
2k views

How can i create a react-native module with storyboard

I have received a sdk with a storyboard and multiple view controllers. In my react-native module I want to expose a method that will transition to this storyboard and the get the result back. I have ...
Maxim Toyberman's user avatar
16 votes
1 answer
2k views

React Native in Expo: Asyncstorage gets cleared when app refreshes

This is going to be a dumb question cause I couldn't show any code as I don't what happened or where this is possible happening. I have been developing a react native app for months now and from the ...
Jed's user avatar
  • 1,074
16 votes
1 answer
2k views

React Native onPanResponderMove seems to be called too rarely

I'm trying to implement a custom, vertical slider in React Native. For this purpose, I'm using a PanResponder. Since the slider is vertical, I'm changing the y value only. To stop the object on slider'...
KlimczakM's user avatar
  • 12.8k
16 votes
1 answer
2k views

Xcode: Embed Framework in React Native Module without modifying application project

I am developing a React Native Module that includes our Framework AntaviSense. I am able to include the framework in the main project and by embed framework in the Project Settings, everything works ...
Ulf's user avatar
  • 160
16 votes
0 answers
3k views

Could not find generated setter @ React Native

I'm getting hundreds of warnings like the following W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager W/unknown:...
Computer's Guy's user avatar
16 votes
0 answers
1k views

How can i use APK Expansion Files with React-Native

I'm building an application with the use of many sound files with big sizes. So problem is that my APK file is much bigger than the 100Mb limit, and I need to use APK Expansion Files. I tried ...
Andrey Nikishaev's user avatar
16 votes
4 answers
3k views

How to temporarily disable rage shake opening the dev menu in react-native?

I'm developing an app in react-native for Android. I recently added a barcode scanning component. Whenever the scanner reads a barcode, the camera does a subtle click noise. It seems that this ...
Eddie Fletcher's user avatar
16 votes
2 answers
4k views

Android App crash "libjsc.so" missing with stacktrace Crashed: Thread: SIGSEGV 0x0000000000000010

Our react-native App seems to sometimes crash on Android, PRD instance with error "libjsc.so" missing and the only details in Firebase are this: Stack-trace: Crashed: Thread: SIGSEGV ...
Ree's user avatar
  • 169
16 votes
1 answer
22k views

Prevent axios/fetch redirection

I have a little problem with my app: I have to get some cookies given in the response of one URL, which is obtained by making a request to another URL. The request is done, but I'm not able to get the ...
Alexandre Michaud's user avatar
16 votes
3 answers
6k views

How to setup debugging in Visual Studio Code for React Native?

I searched but I can't find any external sources except for Visual Studio Code docs, and just following those docs doesn't allow me to debug React Native apps both in iOS and Android. I keep getting ...
jbssm's user avatar
  • 7,051
15 votes
0 answers
4k views

React Native TextInput Error: perform input operation requires a valid sessionID

I have a React Native project using the Expo managed workflow with Prebuild. I'm simply rendering a TextInput component and I am receiving this error: [RemoteTextInput] -[RTIInputSystemClient ...
David Henry's user avatar
  • 2,720
15 votes
0 answers
3k views

No Native Splash screen registered for given view controller. Call "splashscreen.show" for given view controller first

I have tried using react-native-splash-screen, I have tried renaming LaunchScreen.storyboard, I have tried adding a new one to my images.xcassets folder. I am not sure what else I can try to avoid ...
SimonStern's user avatar
15 votes
0 answers
4k views

Disconnected from the Metro server. Reload to reconnect

Using RN with Expo, I've started getting the Disconnected from the Metro server. Reload to reconnect error to appear pretty much every time after hitting Save. I found this - https://github.com/...
user's user avatar
  • 193
15 votes
2 answers
6k views

Detox + Jest - App has not responded to the network requests below

I am currently setting up Detox for an existing project and running into snags. I am using Detox + Jest and am receiving an error [Client.js/PENDING_REQUESTS] App has not responded to the network ...
Blink Rankin's user avatar
15 votes
2 answers
5k views

High CPU Usage in React-Native

I'm working to reduce the CPU load on an RN app. I've built the app to a device, in release, and trimmed the console logs from the project. Even after doing this, the app is still around 33% CPU usage ...
James Dunay's user avatar
  • 2,724
15 votes
1 answer
1k views

Fetch API slow in [email protected] release build

I use fetch in my react-native app for API calls. This works fine in development builds, but slows down to several seconds in a release build. The problem is not with the API; a request takes about ...
Wouter Alberts's user avatar
15 votes
1 answer
14k views

How to select multiple values from Picker component in react-native?

react-native Picker component doesn't seem like providing multiselect option https://facebook.github.io/react-native/docs/picker.html#enabled But, I have com across some libraries which provides ...
ThinkAndCode's user avatar
  • 1,569
15 votes
0 answers
1k views

Facebook yoga/react-native flexbox css-layout position: "fixed" support

For support of position: "fixed" in css-layout(react-native), Use case: I have (many) videoView deeply nested in view hierarchy - think list of videos, any one of which I want to make fullscreen. ...
jay shah's user avatar
  • 983
15 votes
0 answers
1k views

React-native <Picker /> on android crashes app after render

Here are the components: <Picker selectedValue={'item1'} onValueChange={(value) => onDismiss(value)}> <Picker.Item key={'item1'} label={'item1'} value={'item1'} /> <...
stkvtflw's user avatar
  • 13.1k
15 votes
1 answer
4k views

detect when another view is touched - dragging with PanResponder in react native

I have a card game where the user can drag cards around a screen. How can I detect if the cards have been dragged over other View components? My draggable card code is like this: // A draggable ...
Andrew Johnson's user avatar
15 votes
2 answers
3k views

Locking scroll position in FlatList (and ScrollView)

I'm trying to create a FlatList that keeps the current scroll position locked and does not change by new items that are inserted at the top of the list. I've created an expo snack to demonstrate my ...
Guy Segal's user avatar
  • 961
14 votes
2 answers
9k views

Expo cannot open development build on android emulator

I'm trying to run my Expo managed project on Android simulator with npx expo run:android. I have expo-dev-client installed. When I run npx expo run:android, it fails with the message: CommandError: ...
hayata_suenaga's user avatar
14 votes
1 answer
648 views

Custom component topbar button event RNN v2

I have a custom component 'MenuButton' in my RNNv2 topbar. I want openMenu() to run when this button is clicked, but this doesn't happen. My typescript linting tells me Property openMenu does not ...
Adam.V's user avatar
  • 789
14 votes
1 answer
4k views

React-native : Opening emoji keyboard

I'm writing a small chat app in react-native, and I'm wondering if it's possible to open the keyboard as the default emoji phone keyboard (and switch to the regular text one easily). For iPhone users, ...
Johan's user avatar
  • 141
14 votes
2 answers
7k views

How do I change the RefreshControl's loading indicator?

I have a FlatList that uses a standard RefreshControl, like so: <FlatList data={items} refreshControl={<RefreshControl refreshing={loading} onRefresh={this.refresh} />} ...
user2719094's user avatar
  • 1,732
13 votes
0 answers
2k views

android sdk version not found in react-native-community/cli doctor

I ran npx @react-native-community/cli doctor, and I encountered the following error: capture of doctor log I'm seeing an error related to the Android SDK, where it is looking for a version called .b33....
booboo4055's user avatar
13 votes
0 answers
2k views

React Native Debugger Won't Turn Off

I was using the React Native Debugger on a Mac. However, after I pressed Cmd + D entered Stop Remote JS Debugging, and then hit reload, the application won't quit popping up the debugging screen in ...
Dog's user avatar
  • 2,828
13 votes
2 answers
3k views

How to use recompose's toClass HOC to add a ref to a functional component?

I'm trying to add a ref to a functional component in React Native as to use scrollToEnd on the FlatList component. I would like to use recompose for this and as their docs state, toClass() should be ...
Rein Van Imschoot's user avatar
13 votes
0 answers
2k views

React-native trigger/simulate touch on screen by given x, y coordinates

I would like to have a button in the react-native app so that can trigger/simulate a touch on the screen by giving x, and y coordinates. Just like: touchMe(x, y) Is there any way that can help me to ...
Boomba's user avatar
  • 131
13 votes
0 answers
3k views

How to draw over other apps in React-native

I was trying to create Facebook messenger-like chat heads in my react-native app. I used pan responder to create the dragging effect and collapsing to side effect but I am not able to figure out how ...
Aayush Anand's user avatar
13 votes
0 answers
1k views

React Native - Acceptable Amount of Memory Usage

I have a basic react native app that uses React Native Maps to display the location markers (whose latitude & longitude is pulled from my API). However, this app is using well over 200MB of memory ...
Thomas's user avatar
  • 2,376
13 votes
0 answers
449 views

How to escape a dot in emmet

I am using Atom to write a react-native application. Basically I need a snippet that expands to: <TabBarIOS> <TabBarIOS.Item> </TabBarIOS.Item> <TabBarIOS.Item &...
DeiDei's user avatar
  • 131
13 votes
1 answer
2k views

How to handle a share intent(sending an image) in the expo app?

Is there any way to handle sharing files to expo app? According to the documentation of app.json it's possible to provide intentFilters, but I can't find anything regarding handling them afterwards. ...
Phil Rukin's user avatar

1
2 3 4 5
1335