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
20
votes
5 answers

Xcode 12 Problems: "Build input file cannot be found "- Building for release on a react native app

When I try to do an archive build for "any iOS device", I receive this error: Build input file cannot be found:…
Craig1123
  • 1,510
  • 2
  • 17
  • 25
20
votes
3 answers

react-native Modal with SafeAreaView-wrapper not working

We have a FilterComponent which renders a Modal, but on iPhone X it's Header is in the Statusbar. I tried to render it with SafeAreaView but seems like this is not working: return (
Michael Ploeckinger
  • 1,616
  • 1
  • 11
  • 24
20
votes
2 answers

React: Calling JS function after bridge has been destroyed --- How to find which function

I'm working on an update for our app. I've added a HeadlessTask and I've started seeing this warning in the console: React: Calling JS function after bridge has been destroyed How can I get the name of the function being executed?
jcity
  • 826
  • 1
  • 9
  • 13
20
votes
6 answers

DeviceInfo native module is not installed correctly

So I tried implementing Facebook Login and followed all the steps accordingly. After having errors with FBSDKcorekit/FBSDKcorekit.h' file not found, I decided to pivot over to working on other components. Lo' and behold, I have this error giving…
kdizzle
  • 577
  • 1
  • 11
  • 23
20
votes
1 answer

Render multiple marker in react-native-maps

Hye, Im new in react native and want to ask how do I render multiple markers in maps. This is my code inside class:- constructor(props) { super(props); this.state = { coordinate: ([{ latitude: 3.148561, longitude: 101.652778, …
Hazim Ali
  • 1,077
  • 4
  • 17
  • 28
20
votes
3 answers

How do I listen to physical buttons with react native?

I am trying to detect when the user presses volume up button within a react-native application. I am not using any media as music or video directly in the phone, I want to use the volume buttons for a different purpose. e.g: triggering the camera…
jsdario
  • 6,477
  • 7
  • 41
  • 75
19
votes
3 answers

Can I use the prop nativeID to locate a View in native code

Is it possible to add the prop nativeID to a view like follows: ... And then use that id to locate the view in my native android and iOS code so I could apply some native method on it. If it is then an example would be…
Salma Ali
  • 201
  • 2
  • 5
19
votes
2 answers

react native console.debug does not show log using log-ios

After upgrading existing project to react native v 0.48.3, console.debug is not listing logs when I run the application on simulator. It used to work till I upgraded using react-native upgrade option. Any suggestion to view the logs using…
suman j
  • 6,710
  • 11
  • 58
  • 109
18
votes
6 answers

"npx react-native run-ios" is picking non existing simulator

As per https://reactnative.dev/docs/environment-setup, I'm trying to run sample project on iOS simulator When I ran command npx react-native run-ios getting error info Found Xcode workspace "AwesomeProject.xcworkspace" error No simulator available…
vikramvi
  • 3,312
  • 10
  • 45
  • 68
18
votes
2 answers

Difference between hot reload and fast refresh in react-native

In versions before 0.61 of react-native for reflecting code changes, we have two options. Live Reload (Reloads the app when detects some changes) Hot Reload (Reflect the changes without reloading) but in the version 0.61, removing these two (Live…
Waheed Akhtar
  • 3,110
  • 1
  • 16
  • 30
18
votes
4 answers

React Native endless stream of Socket SO_ERROR

I'm working on an existing React Native project and in XCode log output I get an endless stream of the following errors 2019-01-09 12:15:49.005630+0000 App [13746:3543026] [] nw_socket_handle_socket_event [C10.1:1] Socket SO_ERROR [61: Connection…
Karolis
  • 2,899
  • 2
  • 23
  • 38
18
votes
3 answers

react-native link only for one project (Android or iOS)

I want to link only one of my project (Android or iOS) with the npm package. Is there any way to do it?
18
votes
6 answers

React Native STUCK starting packager

For some reason when I want to start my React Native project, it's stucks at 'Starting Packager...' part. I tried to delete the node packages, and reinstall them, intall them via yarn, npm, but no luck. I got no idea how should I fix this :/ (so…
Istvan Orban
  • 1,607
  • 3
  • 18
  • 34
18
votes
8 answers

App state in react-native does not remove the listener

I have added the listener in the following way(tried putting in both constructor and componentDidMount): AppState.addEventListener('change', this._handleAppStateChange); And the removed the listener the following way in componentWillUnmount…
gbhati
  • 493
  • 1
  • 8
  • 20
18
votes
5 answers

How do I open in-app browser window in React native?

I'm trying to open the browser window without leaving the app when I click a URL (for both iOS and Android). The behavior should be as follows (with airbnb app example): Clicks in "Terms and conditions" link: links example Open the browser…
Facundo Bazzana
  • 181
  • 1
  • 1
  • 5