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

componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native

I use the react native latest version of 0.54.0 and Whenever run the apps on iOS there is found warning about deprecate the lifecycle methods. and also please update the components. Warning : componentWillMount is deprecated and will be removed in…
Kirit Modi
  • 23,155
  • 15
  • 89
  • 112
41
votes
8 answers

Email Validation (React Native). Returning the result as 'invalid' for all the entries

I am trying to validate a users email, by checking it against an expression. But the result i am getting is invalid for all the entries. UPDATED CODE class dummytest extends Component{ constructor(props){ super(props); this.state = { …
Avikrit Khati
  • 861
  • 4
  • 10
  • 20
40
votes
11 answers

react-native webview loading indicator

I am trying to show loading indicator in webweb as follow. Loading indicator is showing but there is white background show after page is loaded. If I change to startInLoadingState to false, web content is showing but loading indicator does not show.…
Alex Aung
  • 2,637
  • 5
  • 34
  • 63
37
votes
13 answers

React Native Build Error on IOS - typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')

After upgrading React Native from 0.61.5 to 0.63.2, Flipper causes an error on IOS as typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') On github there are a few proposed answers but none of them solved…
mcnk
  • 1,690
  • 3
  • 20
  • 29
37
votes
1 answer

Swift package manager in React Native project

In iOS, React Native support CocoaPods for Objective-C and Swift code. Is there any way to bring 3rd party libraries via Swift Package Manager?
gran33
  • 12,421
  • 9
  • 48
  • 76
34
votes
16 answers

library not found for -lDoubleConversion

I tried to build on XCode but ld: library not found for -lDoubleConversion error occurs. I could build react-native run-ios. That would work, but XCode could not build... ld: warning: directory not found for option…
Shun Yamada
  • 879
  • 1
  • 10
  • 25
34
votes
5 answers

How to change the text color of text input in react native?

The placeholder of the input is green but I want also make the green text input (when I am typing the text text color shows black which is not visible enough in my UI). How can I make it Green as well?
Syuzanna
  • 509
  • 2
  • 8
  • 14
33
votes
8 answers

"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur

I was trying to install React Native on my system, and found that it failed to install CocoaPods dependencies which is required by that template error. sudo arch -x86_64 gem install ffi fixed this issue but ended up with event-config.h" file not…
Quinn
  • 331
  • 1
  • 3
  • 4
33
votes
2 answers

ScrollView child layout must be applied through the contentContainerStyle prop

I am using react native swiper. and this error was shown I don't know why. How can it be solved? In the past, there was not a problem like this. It's first time happening. What is wrong? Here is the image of a full error:
NewTech Lover
  • 1,185
  • 4
  • 20
  • 44
33
votes
6 answers

Disable IOS keyboard suggestions in React Native

I'm trying to set up a comment page in my app and I want to have the comment input field sitting right on top of the keyboard like Facebook, Instagram, Strava and many other apps have. But when the keyboard comes in it has suggestions on the top…
Ryan Wilson
  • 1,743
  • 3
  • 15
  • 26
32
votes
6 answers

Build Failing for React Native iOS, "Multiple commands produce" Error

We were working on a react native project. One of my team members added some native modules on Linux and linked android. By then I am trying to link things in iOS but the build is always failing with this kind of error trace. The Android project is…
Faisal Manzer
  • 2,089
  • 3
  • 14
  • 34
31
votes
3 answers

How to do an Horizontal ListView, or FlatList in react-native

I'm searching a way to make an horizontal ListView or FlatList In React-native. like the image below: I tried to managed it with Flex but it's make me stranges results, and always with a vertical ListView If you got any idea, let me know. Regards,
30
votes
5 answers

ios keyboard covers the input which is located in the bottom of the screen

ios keyboard covers the input which is located at the bottom of the screen. How can this trouble be solved? here is the code.
NewTech Lover
  • 1,185
  • 4
  • 20
  • 44
30
votes
3 answers

React' findNodeHandle method stopped working

After upgrade to 0.26.0-rc version, this line: React.findNodeHandle(this.refs.myRef) Throws this error message: Unhandled JS Exception: _react2.default.findNodeHandle is not a function. I'm importing React with this: import React from…
Ivan Chernykh
  • 41,617
  • 13
  • 134
  • 146
28
votes
2 answers

Best file picker for react native

I've tried react-native-file-picker, react-native-file-chooser, react-native-document-chooser etc, but none of them are working properly. Can anyone suggest me a good functional file picker for choosing files from device storage?
ajithes1
  • 433
  • 2
  • 11
  • 28