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
12
votes
1 answer

Why do I get this error: 'import of module appears within namespace' on xcode with react-native?

I got this react-native project and I had to use use_modular_headers! on Podfile. I suppose I needed that because this pod MercadoPagoSDK is some sort of dynamic library (╯°□°)╯ which I don't really know what that means on iOS development world.…
ofundefined
  • 2,692
  • 2
  • 18
  • 35
12
votes
1 answer

How to stop react-native link from linking a library with CocoaPods with it has a podspec?

I need to use CocoaPods for a specific library. However I don't want to use it for any other because it usually forces me to add React and its dependencies to the Podfile as well, which is a nuisance and can lead to several issues as in previous…
jphorta
  • 2,144
  • 3
  • 18
  • 27
12
votes
2 answers

How to restrict date selection in React native ios/android datepicker

I would like to restrict users from selecting particular dates based on business logic in react native ios/ android date pickers. Currently in the document i only see that a min date and max date can be provided. So is there a way to only restrict…
Sam
  • 1,298
  • 6
  • 30
  • 65
12
votes
6 answers

React Native - KeyboardAvoidingView with Sticky Footer

I'm trying to make a sticky footer with the KeyboardAvoidingView component in React Native. I'm very close to accomplishing this task, however, when they keyboard comes up, the footer is moving up but shrinking in height at the same time. Here's…
Thomas
  • 2,356
  • 7
  • 23
  • 59
12
votes
3 answers

undefined is not an object (evaluating 'CameraManager.Aspect')

I've been getting this error when setting and linking my react-camera with my project on React-Native. I tried all the solutions found in google but still not working, I also tried this video https://www.youtube.com/watch?v=pJseuSOC8HA and not…
paolacl
  • 191
  • 2
  • 6
11
votes
4 answers

7 duplicate symbols for architecture x86_64 in react native

when I am trying to run my react native app on the ios simulator I am getting this error. Error: duplicate symbol '_EXCanAskAgain' in: …
Harsh Mishra
  • 862
  • 3
  • 15
  • 29
11
votes
5 answers

error: Expected node to be of a type ["Statement"] but instead got "AssignmentExpression" | React Native IOS

I'm having this problem when trying to run react native app on ios emulator. I literally just created the project running npx react-native init app_test and when I run npx react-native run-ios I got this error. I'm not installing dependencies or…
Mcrunny
  • 111
  • 4
11
votes
5 answers

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found

App get crashed with the above message. Unable to view my app screen. Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack: platform :ios,…
sejn
  • 2,040
  • 6
  • 28
  • 82
11
votes
5 answers

Xcode 11 Upgrade | Could not find iPhone X simulator | XRPackageModel 9.0.omo

Anyone else getting this since upgrading from Xcode 10.3 to Xcode 11 when running react-native run-ios and any idea to get back up and running? CoreData: annotation: Failed to load optimized model at path…
Leo
  • 10,407
  • 3
  • 45
  • 62
11
votes
3 answers

handle network request failed in react native

I'm facing an issue while using react native fetch api. many times request got failure . I have a high speed connection. but many times it got failed. that issue is happening In android,ios both. const shoppingApi = 'myserverlink'; async function…
Tanveerbyn
  • 764
  • 1
  • 10
  • 25
11
votes
1 answer

child views are overriding parent view's boundary. [react-native]

I am trying to do as following in react-native. I am setting a borderRadius in the parent view. But the child is overriding that. So in the final view, the borderRadius is not visible export default class FlexDimensionsBasics extends Component…
Vikash
  • 213
  • 5
  • 15
11
votes
5 answers

React Native: mobile number validation accept numeric value only

How validate mobile number in react native accept the only numeric value.
Asif vora
  • 3,163
  • 3
  • 15
  • 31
11
votes
1 answer

Pod install error `React/RCTView.h' file not found` with react-native-maps and use_frameworks

I can't seem to install react-native-maps into my react native ios project using pod install. I get the warning Missing dependency target "React" and a React/RCTView.h' file not found…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
11
votes
3 answers

How to get jpg image from heic format in react native

I am picking photos from gallery and upload to server but since few days I noticed that some photos have extension heic and browsers can't render those images. 1. Is there a way to extract photos from uploaded heic? 2. How in react native I can get…
1110
  • 7,829
  • 55
  • 176
  • 334
11
votes
1 answer

How to set the accessibilityIdentifier on a React Native component?

I’d like to add an accessibilityIdentifier to a React Native component, so that I can use Xcode’s UI testing to navigate around my app. Is there a way to specify the accessibilityIdentifier (not the accessibilityLabel) for React Native?