Questions tagged [react-native-ios]

1

votes
1

answer
1.6k

Views

Module 'react' does not exist in the Haste module map

I am trying to do LinkedIn integration in my app. So, I have done as below : Installed dependency as below : npm install react-native-linkedin --save; So, while launching the app, am getting below error : Failed to load bundle(http://localhost:8081/index.bundle? platform=ios&dev=true&minify=false...
Vishal Zaptech
1

votes
3

answer
37

Views

What is the equivalent of Java singleton in React Native?

Actually I am a Android Native Developer. I am new to React-Native. In Java i keep the users data and others data in Singleton Class and access from other activities. Then how i achieve this process in React native for access data's from other components or any alternative of singleton in React nati...
Sabish.M
1

votes
1

answer
340

Views

Error: @“Bridge module %@ does not conform to RCTBridgeModule”

I'm new in React Native and I would like to use native modules in order to get a battery status of the phone. The problem is that I'm getting fallowing error: @'Bridge module %@ does not conform to RCTBridgeModule'. I'm guessing that it is class related but I'm not familiar with a Objective-C syntax...
Murakami
1

votes
1

answer
49

Views

How do I request permissions during installation / before app starts for a React Native app?

I would like for the user to grant permissions during installation /before the app begins, rather than being prompted while the app is running. Currently, I'm requesting Coarse Location and Microphone access on the Android version of my app and BLE and Microphone access on the IOS version of the ap...
VK1
0

votes
1

answer
7

Views

How to use react navigation outside of a screen

I would like to make my app move to the next page when a code is entered correctly, but I have been having much trouble doing so. I am working in a file names AccessForm.js , which is not a screen but is a component that is included in the access code screen. I tried using this.props.navigation.navi...
Michael Hoefler
1

votes
0

answer
20

Views

I need specific placeholders to address specific types of jobs

This is the code I currently have. I need to change it so that a specific placeholder corresponds to the specific job type such as ride or service. Ex) on the job type rides only a placeholder that corresponded to a ride would be displayed. The problem with the current code is that all placeholders...
Alex Lazarev
1

votes
0

answer
500

Views

Scroll ScrollView to top on content change, without glitching (React Native)

I have a ScrollView component (in React Native [iOS]) that is vertically-paged and populated with full-height images. The result is a vertically-swipable 'gallery' of images that I only want a user to be able to scroll past once. When onMomentumScrollEnd is triggered, I delete the top-most image, an...
Sarreph
1

votes
0

answer
359

Views

Loading from main.jsbundle on device: “Unhandled JS Exception: Can't find variable: setTimeout”

I've been building a react-native app and up till now it's been working fine with both remote JS bundle and also local bundle, having run react-native bundle. However as of today my local bundle will not load on my device whatever I try. I keep getting the following stack trace upon launching of the...
Ed Crampin
1

votes
0

answer
1k

Views

How to upload a image to firebase storage using react native and expo?

I am trying to set a profile pic and upload it to the firebase storage in my ios app using react native. I am using the following code to upload the image:- _pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ allowsEditing: true, aspect: [4, 3] }); this.setState({ ima...
anup
1

votes
0

answer
380

Views

Missing realm constructor React Native iOS

I am working with Realm and react native. After linking Realm with my project i am getting 'Missing realm constructor' in iOS simulator. But it is working in android device perfectly. I have followed this link. Still, it is not working. Here is the image of the error in iOS simulator: Whenever i am...
Codelady Afrin
1

votes
1

answer
311

Views

firebase react-native push notifications working for iOS release builds, but do not work in app released via App Store

I have push notifications working as expected in a Google Play released version on Android with heads up display showing as expected. I also have push notifications working as expected in a release build via Xcode. The problem: push notifications do no appear as expected in an iOS build released...
studiobrain
1

votes
1

answer
1k

Views

React Native iOS: Duplicate Symbols i.e. `duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule`

So I've got the dreaded how many ever duplicate symbols for unknown reasons. Example duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in: /Users/michaelstokes/Library/Developer/Xcode/DerivedData/Clustr-fkpfvfogtttxepgdsdrkmamfpvax/Build/Int...
Michael Stokes
1

votes
0

answer
261

Views

How to wrap an OpenCart web app in mobile app?

First of all, I hope the question is not too much general. I want to wrap my existing website which is done by OpenCart 3 in mobile app. After googling a lot and checking many websites and articles, the only practical instruction what I found is doing this using PhoneGap. The instruction is title...
Kardo
1

votes
1

answer
230

Views

How can i show Swipe-out show right default button in react native

developing sample application. How can i show the swipe-out based in right side default button using react-native. Actually i am getting like this below image: But i want getting like this when list is Open:
Lavaraju
1

votes
2

answer
698

Views

Undefined symbols for architecture x86_64 in iOS project

I'm trying to use this Spotify SDK integration for React Native in my iOS project. I'm getting the following error: Undefined symbols for architecture x86_64: '_OBJC_CLASS_$_SPTAudioStreamingController', referenced from: objc-class-ref in libRCTSpotify.a(RCTSpotify.o) '_OBJC_CLASS_$_SPTAuth', refere...
Josh Rumbut
1

votes
0

answer
296

Views

React-native make an application open webview with url push from notification firebase use react-native-fcm

I want make an application use react-native-fcm https://github.com/evollu/react-native-fcm Step 1: Push notification from google firebase with message is an url Step 2: Click on the notification -> Open URL by Webview Please help me!
Le Van Phuong
1

votes
0

answer
460

Views

Can I config development server IP in react native app (ios)?

So the problem is I'm developing react native on 2 different machines. 1 machine I can't run xcode to build. So I'm hoping that I can build the app on one machine, and when I have to continue develop on the other machine, I can just change the IP of the development server config on the app. From fac...
Anh Pham
1

votes
0

answer
2.3k

Views

How to Check Bluetooth ON/OFF in iOS 11+ in swift

Here is my Code! I Have iOS 11+, swift 4+, CoreBluetooth Framework while I'm running my application it always shows Bluetooth is Off.but I run the same code in below iOS 10 version its runs how its happening? My priority is to run on iOS 11+ what should I do? any suggestion??? import UIKit import...
Mohammed Fazil
1

votes
0

answer
58

Views

Cmd + D and cmd + control + z don't bring up the In-App Developer Menu react-native iOS

I am facing a problem where I can't bring up the In-App Developer Menu on the simulator for react-native iOS. These are the few things I've tried so far: I tried shaking the device manually by going to Hardware -> Shake Gesture I checked that my keyboard is connected by going to hardware -> keyboar...
Sidah Merzouk
1

votes
2

answer
429

Views

How to add in-app browsing in React Native

I am creating an app where the JSON response contains an URL for the user. If they click on it the browser should display the contents. I used Linking but it redirects me to external browser. Is there a way we can do it within the app ?
Pradeep
1

votes
1

answer
1.9k

Views

Native component for “AIRMap” does not exist

react-native: 0.53.3 [email protected] I'm trying to use react-native-maps and I keep getting this error. This is in a fresh project: react-native init maps cd maps/ npm install --save react-native-maps react-native run-ios And in App.js I've added this: ... import MapView from 'react-native-...
smilebomb
1

votes
1

answer
1.6k

Views

Clear button for multiple TextInput in react-native

I'm trying to put more than one TextInput here(1st-contact, 2nd-address) in single page and put a clear button at the end of the TextInputs which clears TextInput's value. But I'm stuck how to make clear button visible when user clicks on individual TextInput. I tried clearButtonMode='while-editing'...
Riddhi
1

votes
0

answer
150

Views

pdfView react native ios cant zoom

In react native,installed react-native-pdf and react-native-fetch-blob.The PDF can view.The problem is while zooming (double tap or pinch), the iOS screen move to left top corner part and showing the empty space,android zoom working fine.Please assist me on this.Thanks
Emy
1

votes
1

answer
84

Views

React Native Brownfield: two RTCRootView on one screen depend on same API call

In the documentation of RTCRootView, I see the it is a subclass of UIView for iOS. The documentation description says the the RTCRootView is a 'Native view used to host React-managed views within the app. Can be used just like any ordinary UIView. You can have multiple RCTRootViews on screen at once...
Turnipdabeets
1

votes
1

answer
767

Views

SafeAreaView doesn't working in react native version 0.54.0?

I read that facebook introduce new API SafeAreaView for iPhone X. and I use the react native latest version 0.54.0, You can see my below code. but SafeAreaView doesn't work for iPhone X device. Code : render() { return ( React Native Demo App © 2018 Kirit Modi, PTE. LTD. - Proprietary & Confidenti...
Kirit Modi
1

votes
2

answer
560

Views

justifyContent is not working and I can't change background color of the screen

I am using native base and in this picture you will see stackedLabel form. I'm trying to move it to the center of the screen but it doesn't work with justifyContent and still stays at the top of the screen. Also I am trying to change background color of the whole screen which is also doesn't work. H...
Artur
1

votes
0

answer
78

Views

React Native Flatlist: Is it possible to get viewableItems without onViewableItemsChanged?

I have two Flatlists and when Flatlist A scrolls I want Flatlist B to centre on an item based on an attribute of the visible item in A. However because the items of B are not all the same width I can't just calculate where the middle is based on view width and screen width. The other solution I've t...
tjkind
1

votes
1

answer
1.3k

Views

React navigation: stack navigator with tab navigator is not working

We checked other issues and documentation as well but couldn't find any solution that will solve this issue. Here is the code: It shows error message : react children only expected to receive a single react element child. const MainTabBar = TabNavigator( { Home: {screen: HomeScreen}, Profile: {scre...
Artur
1

votes
1

answer
639

Views

React Native release build crashes on launch (iOS)

Experiencing this silent crash with this error on XCode: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this._propsAnimated.setNativeView') This error is located at: in n in t in n in RCTView in RCTView in t in RCTView in n in r in Unknown in t in a in RCTView in t in Sty...
Adam Wan
1

votes
0

answer
1.1k

Views

Argument list too long: recursive header expansion failed

I have a React Native application that did compile absolutely fine. After installing react-native-sentry and automatically linking via react-native link, I am faced with this problem: Showing Recent Issues Argument list too long: recursive header expansion failed at /Users/dan/Sites/app/node_modules...
Dan
1

votes
2

answer
1.7k

Views

Can't get iOS push notification device token in react-native

I referred to this question to get a device token in order to send push notifications to my app. I created my app using create-react-native-app. Here is the code: import React, { Component } from 'react'; import { Platform, StyleSheet, AppRegistry, Text, View, PushNotificationIOS } from 'react-nativ...
Jay
1

votes
1

answer
340

Views

get ApplicationContext on react-native

I have a watchKit app connected with a react-native iOS app with react-native-watch-connectivity. I want to use the applicationContext to communicate between the devices. From react-native, I use watch.updateApplicationContext({ dataFromRN: 'data' }) to define it and I can get it in iWatch side. But...
Paul
1

votes
0

answer
118

Views

WebView in React-Native and popups

I am struggling with this issue for a while right now. I have an in-app browser, where I direct user to some webpage. In this webpage, there are popups, that are not working on in the WebView - they are not opening. I was trying to intercept them with onNavigationStateChange prop, and tried to navig...
uksz
1

votes
0

answer
505

Views

Method to mirror/flip transform image files in React Native?

Is there a way to transform image files in React Native, such that the result is an image flipped along the vertical axis (mirrored image)? I'm not looking for a library that simply displays mirrored/flipped components -- many of these exist. Instead, I need to actually transform the image file (whi...
sunw
1

votes
0

answer
50

Views

Is there any callback function to handle swipeback from one screen to another?

Is there any callback function to handle swipe back from one screen to another?
1

votes
0

answer
45

Views

React-Native iOS accurate active input position

I have tried to use some the existing solution for iOS keyboard avoiding but none of the existing solutions seems to be working properly with some of my rather complicated views and I am now having to implement my own system. Thus far I have managed to come up with the following which works quite go...
Gerharddc
1

votes
0

answer
61

Views

Issue in building iOS where as android build is successful for React-native run-ios

Problem Running react-native run-ios CFBundleIdentifier ** BUILD FAILED ** The following build commands failed: Ld build/Build/Products/Debug-iphonesimulator/Native.app/Native normal x86_64 (1 failure) Installing build/Build/Products/Debug-iphonesimulator/Native.app An error was encountered processi...
Webs
1

votes
0

answer
897

Views

How to open Picker on TextInput in React Native

I am learning React Native and I am trying to open Picker on TextInput instead of Keyboard. But, It's not working. Here is my code: _renderData(item, index) { {item.fieldName == 'State' ? this._renderPicker() : this._renderTextInput(item, index)} } _renderTextInput(item, index){ return ( {this._setV...
user2586519
1

votes
1

answer
92

Views

Duplicate symbols in iOS using PJSIP and VLC

I am building a react-native app which requires both VLC and PJSIP. The code works fine on Android but on iOS, I am getting a conflict of duplicate symbols while linking. It shows the following error: duplicate symbol _srtp_create in: /vlc/MobileVLCKit-binary/MobileVLCKit.framework/MobileVLCKit(libv...
user2101977
1

votes
0

answer
733

Views

How to set initial tab in react navigation TabNavigator dynamically

I am using react-navigation and have a nested TabNavigator inside a StackNavigator. I have three tabs in TabNavigator and need to set initialRouteName for TabNavigator dynamically based on some logic. I have tried putting the TabNavigator inside a React Component with dynamically selected initial ta...
Natwar Singh

View additional questions