Questions tagged [react-native-ios]

React-native-ios: refers everything related to react-native ios development. Component, Styling, Routing and Native API access in react-native ios.

React-native is a library that enables iOS device applications to be written in rather than . When necessary you can fall back to .

3161 questions
15
votes
1 answer

Image sizes for android and iOS in react-native

While making iOS Apps, we generally used to supply @x,@2x,@3x images. And based on my knowledge in case of android, there was some approx six different sizes I have started working on react-native and came across the image issue. My Question are:…
JiteshW
  • 2,195
  • 4
  • 32
  • 61
15
votes
2 answers

React-Native: Use Push Notification to wake a background task

As far as I know, push notification can be used in react native, even when the app is closed. would it be possible to use push notification to run a background task in react native? for example, when a push notification is sent to a device, it runs…
14
votes
1 answer

Paste from clipboard not working with React Native on iOS simulator

As the title says, I'm working on an app that has an input text and when I tried pasting text I had on the clipboard, it wouldn't do anything, but it shows the new notification saying that "the text from clipboard was assessed". After that, I…
homer0
  • 173
  • 2
  • 7
14
votes
8 answers

React Native Ios Error - ENOENT: no such file or directory, uv_cwd (null))

I get this error when running a new react native project. There is no error with the default starter code, but if a change even a letter of the starter text, I get this error. Failed to load…
user10034296
  • 179
  • 1
  • 1
  • 7
14
votes
1 answer

React Native FlatList nested inside FlatList with same orientation

I Cant create FlatList nested inside FlatList with same orientation; the result is that the parent is horizontal but the children are vertical; this is my code: renderSlides(question) { return
14
votes
6 answers

React Native Flatlist renderItem

Working with React Native, having some issues with the FlatList component. This is my FlatList this.renderItem()} refreshControl={
14
votes
7 answers

How to check the network status in react-native app

i am struggling about this point, that if in my mobile i am in poor network connection, Some how i am calling the service, it will take more time to call the service Is there any possibility to increase the fetch timeout (or) How to tell the user…
Hussian Shaik
  • 2,559
  • 9
  • 37
  • 57
13
votes
7 answers

Invalid `Podfile` file: Unable to locate the executable `node`

I'm trying to run my App on IMB Cloud. Server run is OK. NPM Installed and Started. When POD Install from cd /ios it shows error: denisbondar@MBP-Denis ios % pod install [!] Invalid Podfile file: [!] Unable to locate the executable node. # from…
Denis Bondar
  • 131
  • 1
  • 1
  • 3
13
votes
7 answers

Amplify React Native - Duplicate Error using amplify add api

I'm using this Amplify guide https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1 and when I create an API using "aplify add api" the app fails. I'm using "expo" and I'm using IphoneX for test…
j_hen
  • 173
  • 1
  • 8
13
votes
3 answers

React native iOS build is taking a long time

I have a big issue with react native IOS build. My project(RN 0.57.1) is taking a long time when I start to archive a project. I am using the following steps: 1) Cleaning the build folder. 2) Edit schema with release everything. 3) Select Generic…
Rahul Mishra
  • 4,263
  • 7
  • 32
  • 53
13
votes
5 answers

How do I request multiple permissions at once in react native

I'd like to request permissions on one page instead of waiting for each particular situation. However, I do not want multiple popups. Is there a way to ask for permissions with a single popup/modal. On the android side I found this post and this,…
VK1
  • 1,676
  • 4
  • 28
  • 51
13
votes
5 answers

Xcode 10 archive build failed

I'm getting the errors below when trying to archive the app. Any idea how to resolve this? :-1: Multiple commands produce…
Fire Hand
  • 25,366
  • 22
  • 53
  • 76
13
votes
1 answer

react-native error RCTJSONStringify() encountered the following error: Invalid type in JSON write (NSURL)

I am trying to use react-native-fbsdk in my react-native app. It was working fine untill yesterday. But, today it gives a weird error stating RCTJSONStringify() encountered the following error: Invalid type in JSON write (NSURL). RN v0.42.0 Here is…
Lakshman Diwaakar
  • 7,207
  • 6
  • 47
  • 81
12
votes
6 answers

Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install

Hi I'm trying to run my react native app on mac mini. I can run another app also this app to but when i write pod install in terminal it gives this error. 1: from…
tryingtofix
  • 123
  • 1
  • 1
  • 6
12
votes
1 answer

React-Native App terminated due to NSInternalInconsistencyException - 'This method must not be called before the JS thread is created'

I want to run my React-Native app in debug mode on my iPhone. If run it in release there are no Problems, it runs just fine. When I try to run it in debug it first seems fine and build the app. As expected it then installs to my iPhone and launches…
Thunermay
  • 194
  • 1
  • 12