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
337
votes
11 answers

What is the difference between Expo and React Native?

From the Expo website Expo lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Isn't this what React Native does? What's the difference?
Aurora
  • 3,395
  • 2
  • 10
  • 3
274
votes
49 answers

React Native version mismatch

Getting the following message when I init a new project and then launch the Xcode emulator: React-Native Version Mismatch Javascript Version 0.50.1 Native version: 0.50.0 Make sure you have rebuilt the native code. ... Does anyone know what is…
Sam Rao
  • 4,361
  • 5
  • 19
  • 21
148
votes
25 answers

`React/RCTBridgeModule.h` file not found

Getting this error while building a react-native iOS app on xcode. Started getting this error after npm install and rpm linking react-native-fs library. But after searching online for a solution, I noticed that many people are getting the same…
Simar
  • 2,475
  • 5
  • 16
  • 19
146
votes
26 answers

`react-native run-ios` returns Error: Could not find iPhone X simulator

whenever I run react-native run-ios, I get Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise () …
Seongmin Choo
  • 1,653
  • 3
  • 10
  • 14
129
votes
14 answers

How to launch and open email client React-native?

I do not want to compose an email. I just want to be able to launch the main email app on a user's device (iOS& Android) from a react-native app. Scenario: I will send a verification email to the user upon signup.
jasan
  • 11,475
  • 22
  • 57
  • 97
109
votes
14 answers

Xcode throws 'atomic_notify_one' is unavailable

I installed Xcode 12 on my Mac, tried building my react native app that runs perfectly on android, and get 'atomic_notify_one' is unavailable. This is the most information I get from the error.
Marvelous Ikechi
  • 2,031
  • 2
  • 15
  • 26
108
votes
16 answers

'event2/event-config.h' file not found

I am trying to build a react-native app in iOS but unfortunately coming across the following issue (referring to libevent/Flipper): 'event2/event-config.h' file not found I have react-native v0.63.4 and I have linked the packages using react-native…
UsmanJ
  • 1,279
  • 2
  • 10
  • 15
103
votes
18 answers

How can I regenerate ios folder in React Native project?

So a while ago I deleted the /ios directory in my react native app (let's call it X). I've been developing and testing using the android emulator but now I'd like to make sure it works on ios with xcode simulator etc. So my current idea is to…
Tam Borine
  • 1,474
  • 2
  • 13
  • 21
87
votes
13 answers

Getting this error: error: bundling failed: Error: Unable to resolve module `react-native-safe-area-context`

I am getting this error after running my App: error: bundling failed: Error: Unable to resolve module react-native-safe-area-context from node_modules/react-navigation-stack/lib/module/vendor/views/Stack/StackView.js: react-native-safe-area-context…
74
votes
22 answers

Error: EMFILE: too many open files - React Native CLI

I try to run a react-native-cli project using react-native start, and the metro bundler fails, saying the following: events.js 187 throw er; //Unhandled 'error' event Error: EMFILE: too many open files, watch Emitted 'error' event on NodeWatcher…
Amir
  • 1,422
  • 1
  • 15
  • 28
65
votes
19 answers

Refresh previous screen on goBack()

I am new to React Native. How can we refresh/reload previous screen when returning to it by calling goBack()? Lets say we have 3 screens A, B, C: A -> B -> C When we run goBack() from screen C it goes back to screen B but with old state/data. How…
55
votes
26 answers

react-native ios Podfile issue with "use_native_modules!"

In my react-native project (react-native@0.60) in the ios/ dir I run pod install and get this error: [!] Invalid `Podfile` file: no implicit conversion of nil into String. # from /Users/coryrobinson/projects/hhs2/ios/Podfile:37 # …
Cory Robinson
  • 4,616
  • 4
  • 36
  • 53
53
votes
3 answers

How to build .ipa application for react-native-ios?

I would try "https://stackoverflow.com/questions/41970435" But I'cant get .ipa file. Can any one explain how to get the .ipa file?
Saravana Kumar
  • 3,230
  • 7
  • 26
  • 44
48
votes
8 answers

pod install failed on macOS Big sur

I am pretty new to macOS and recently shift to macOS from windows, I started to working on react-native app and when I try react-native run-ios it gives me below error error Could not find "Podfile.lock" at…
44
votes
16 answers

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_modules/react-native/scripts/react_native_pods Here is my podfile require_relative…
james murphy
  • 1,505
  • 5
  • 31
  • 57
1
2 3
99 100