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
26
votes
3 answers

react-native-webview : For iOS text too small

I have used react-native-webview for rendering HTML text. But text is too small in iOS while in android it is perfect. Here are lines of code : import { WebView } from "react-native-webview"; render() {
Payal Maniyar
  • 4,293
  • 3
  • 25
  • 51
24
votes
1 answer

React Native localhost Another debugger is already connected

Not sure if anyone had this problem, since I could not look it up anywhere but I cannot see any logs for react native app because the browser console tells me that "Another debugger is already connected" its a warning that keeps looping. Metro…
24
votes
5 answers

React native vector icon not working on current version 0.60

React native autolink not working for react native vector icons. I fixed this into android with this https://github.com/oblador/react-native-vector-icons/issues/1035 But on IOS i am still facing issues. Please let me know if anyone solved…
24
votes
7 answers

React Native Open settings through Linking.openURL in IOS

I want to open ios setting app from my app. the settings destination is [ settings => notification => myapp ]. to turn on & turn off push notification. There are some documents about how to link to settings, but I don't know how to open deep link.…
ton1
  • 7,238
  • 18
  • 71
  • 126
24
votes
1 answer

How can I call method from onPress on Alert function [React-Native]

How can I call method from onPress on Alert function [React-Native]
boy_v
  • 547
  • 3
  • 8
  • 23
24
votes
3 answers

How do I retrieve iOS Status Bar height in React-Native app?

For Android I know I can use StatusBar.currentHeight but I'm not sure how to do so for iOS. The answer to how to retrieve the size in Swift(native) has already been answered but I need this in a react native app.
jasan
  • 11,475
  • 22
  • 57
  • 97
23
votes
1 answer

syntax 'nullishCoalescingOperator' isn't currently enabled

when I tried to build my app on ios-simulator it says : bundling failed: SyntaxError: /Users/MyName/MyApp/node_modules/react-native/node_modules/react-native/Libraries/Components/Switch/Switch.js: Support for the experimental syntax…
Mahgolsadat Fathi
  • 3,107
  • 4
  • 16
  • 34
23
votes
9 answers

Requiring unknown module "11" error on iOS simulator

When I run the react native project with react-native run-ios.It shows the following error on my iOS simulator.On my android simulator, it is totally ok.I have deleted node module and reinstalled.But the error is still there.I don't want to entirely…
23
votes
8 answers

React Native app opens and closes quickly after installation on ios simulator

I've been developing an App using React Native and when I switched to a Mac environment to set up the configurations for ios, after all the setup has been done, the app opens very quickly and closes after the installation, showing that powered by…
Gabriel Schneider
  • 605
  • 2
  • 6
  • 12
23
votes
3 answers

How to schedule background job at specific time in react native

I want to execute some Task T at specific time in a day in background in react native. I see that it is possible in android as of now using Headless JS. I found that this library implemented this https://github.com/vikeri/react-native-background-job…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
23
votes
3 answers

React native - How to implement iOS Settings

Wondering if someone could help me with this, or at least point me in the right direction. I've been searching for documentation on how to get/set settings in a React Native iOS app so that those settings appear in the iOS Settings app listed under…
Chris Sheffield
  • 231
  • 2
  • 4
22
votes
2 answers

Forcing onLayout on React Native view

I have a React Native View containing a Text field, and I'm using the onLayout prop to do some positional calculations which rely on the data it provides. {this.props.content} This…
cjhines
  • 1,148
  • 3
  • 16
  • 32
22
votes
4 answers

Execution failed for task ':app:compileDebugJavaWithJavac':

When I try $ react-native run-android on android emulator, I get this error: :app:compileDebugJavaWithJavac /home/user/app/android/app/src/main/java/com/package/MainApplication.java:8: error: a type with the same simple name is already defined by…
Green
  • 28,742
  • 61
  • 158
  • 247
22
votes
5 answers

2 Different Background Colours For ScrollView bounce

I have a ScrollView that has a top section with one background colour and a bottom section with another different colour. When a user scrolls past the content and the view bounces (elastic over-extend), how could I make it so the background is…
Alex Curtis
  • 5,659
  • 3
  • 28
  • 31
21
votes
14 answers

Why "Watchman crawl failed" error in react-native immediately after updating to macOS catalina?

Trying to run react-native run-ios or build RN project from xcode, as soon as metro bundler starts, this error appears in the terminal: Loading dependency graph...jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this…
Jim
  • 1,988
  • 6
  • 34
  • 68