Questions tagged [react-native-ios]

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
1

votes
1

answer
696

Views

Do I run pod update after react-native link with react-native-image-picker?

I'm following the instructions for React Native Image Picker and I'm confused about whether I should run pod install after react-native link https://github.com/react-community/react-native-image-picker#install From what I can tell it adds this line to the podfile pod 'react-native-image-picker', :pa...
MonkeyBonkey
1

votes
1

answer
432

Views

'Unable to resolve module' error in React-Native project, using absolute paths

So I'm trying to get my project running on the iOS simulator, but whenever I run react-native run-ios I get this error on the simulator: 'Unable to resolve module 'name/env' from 'Users/nwork/Desktop/name/name-app/name/redux/settings/const.js': Module does not exist in the module map or in these di...
user74843
1

votes
1

answer
524

Views

Pod install installs deprecated react and creates a build error 'React/RCTBridge.h' not found

I recently added some pods and ran pod install to a previously working project and now I get a warning that React has been deprecated and seems to have problems linking to React with a build error `React/RCTBridge.h' file not found. This type of issue seems to happen with several different librarie...
MonkeyBonkey
1

votes
0

answer
382

Views

React native: xcode no such file or directory: libreact.a

I set up a project in React-Native with react-native init , and open iOS project in Xcode. whenever I tried to build, got the same error no such file or directory: '/Users/vipinjoshi/Library/Developer/Xcode/DerivedData/AwesomeProject-eopkvbaiswfqmvgpwpyfvelrgrsk/Build/Products/Debug-iphonesimulator/...
Aaditya Paliwal
1

votes
0

answer
36

Views

facing issue in installing new package

I am using react-native-base for using react-native components. I have already installed previously react-native-document-picker react-native-fcm react-native-image-crop-picker react-native-vector-icons react-navigation But now Whatever new Package/Library I am Installing in my existing app, some of...
Priyanka Sadh
1

votes
2

answer
286

Views

error: /…/node_modules/native-base/Fonts/rubicon-icon-font.ttf: No such file or directory

I'm having error building a fresh ios cloned repository. Days before this, it was working fine. Now I tried re-installing the native-base or removing node_modules and doing npm install again. But still having the error: 2018-05-10 12:07:07.983 xcodebuild[71799:432389] DVTAssertions: Warning in /Lib...
Compaq LE2202x
1

votes
0

answer
227

Views

implement bluetooth connection for all smartphone users in react-native

I want to scan and connect devices using Bluetooth in React-Native. I tried react-native-ble-manager and react-native-ble-plx plugins. But I have a problem these plugins connected to special devices that have peripheral mode enabled. Look this answer. Question: How can I implement Bluetooth for all...
Murthy Satya
1

votes
0

answer
218

Views

React Native app stuck on blank white screen with iOS simulator

I built my application with the Facebook login feature for iOS last week. I don't know why but when I opened my app today I get this strange error. ** BUILD FAILED ** The following build commands failed: CompileC /Users/alan2305/dougo/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesi...
趙子榮
1

votes
2

answer
1k

Views

$react-native init AwesomeProject getting an error react-native command not found

I am very new to React native. Following the documentation, after putting the command $react-native init AwesomeProject I'm getting: react-native command not found
Amit_Chauhan
1

votes
2

answer
408

Views

Reloading an animation React-native-animatable library

guy's I'm using the react-native-animatable library. Basically, when I load my app the animation runs, however, when I go to another tab and return to the initial page the animation doesn't run anymore. I think it's because it' doesn't get reloaded anymore and I was wondering how to reload a compone...
Re-Angelo
1

votes
0

answer
576

Views

ReactNative 0.55.4 FlatList — Tried to get frame for out of range index Infinity [iOS]

I am rendering a Flatlist on a Modal, this seems to be important since the Flatlist is overflowing the modal, so my thesis is that the bugs are related. The Flatlist is a Grid with many rows and columns, overflowing the modal it contains, after a couple of renders, it crashes (only in iOS) with the...
jsdario
1

votes
0

answer
42

Views

Youtube Player Keep on buffering in IOS 9.3 built with react native

I Created Ios app with React native which plays youtube videos within the app. I am using webview and Youtube Iframe API to play youtube videos. The app is working fine in IOS tablet with Version 11 but it's not working in IOS tablet with Version 9.3, the player loads the video but it keeps on buffe...
Harish Reddy
1

votes
0

answer
79

Views

If React Native runs with 60fps maximum, how can events be processed faster

I have done some intense performance evaluation of the communication between native code and the JS runtime of react native. Now i see that events are received quite fast. On an iphone se its about 1.01ms that an event needs to be send via [self sendEventWithName: body:]. (I am sendingan sent-times...
Martin Mlostek
1

votes
0

answer
281

Views

React native using tab navigator and drawer navigator

I'm totally new to React-native and am currently trying to set up the navigation for my application. I have a stack navigation that is leading me from the login to the tab navigator. The tab navigator has 4 tabs (HomeRoutes, ProductCatalogueRoutes, MyCustomerRoutes and DrawerRoutes). The last one sh...
Lisa Neu
1

votes
0

answer
241

Views

In React native IOS getting “RCTBridge required dispatch_snyc to load RCTDevLoadingView This may lead to deadlocks.”

As i reload the appliaction after closing it after some progress screen just gone blank and this warning is coming ' RCTBridge required dispatch_snyc to load RCTDevLoadingView This may lead to deadlocks. ' please help me out..
ronak
1

votes
0

answer
25

Views

Text Component won't render after a certain height

With React Native's Text components, there is a certain height (about 500-600 lines) after which a text view just stops rendering on iOS devices. This doesn't appear to be an issue on Android. import React, { Component } from 'react'; import { Text, View, ScrollView } from 'react-native'; const text...
Jack Thias
1

votes
0

answer
179

Views

React Native: RN-Material-Dropdown not displaying (iOS)

I'm trying to use the lib react-native-material-dropdown in iOS, running on a iPad Air, but the dropdown is not showing on the screen. I've tried to input a marginTop with a negative value and a value to width, but nothing works. Follow the code of my class and the versions that I'm using: RN versi...
Wallace Blend
1

votes
0

answer
68

Views

fork react-native (with native modules) component locally

im new with react native. have a project , helloworld root/ /android/ /ios/ /node_modules/ /githubLib1/ /android/... /ios/... ... /src/ ... so my question is how can i fork 'githublib1' to 'githublib2' and place it to a root level and then connect to a react native ? i did copy and place on root but...
1

votes
0

answer
213

Views

OneSignal onReceived listener action when app is in background

I want to store the notification data when I receive the notification. This works fine when app is open, but if the app is in background, onReceived doesn't get triggered because componentWillUnmount removes the listener. This is what I have right now. componentWillMount() { OneSignal.addEventListe...
Ashish Musale
1

votes
1

answer
149

Views

App crashes when storage().putFile is called with assets-library uri on iOS

I am trying to upload an image from the camera roll of the phone to Firebase Storage using react-native-firebase. However, when I pass the uri of the image to the putFile method, the app crashes without an error. For example: const uri = 'assets-library://asset/asset.JPG?id=3DEE5FA3-9E58-479B-9AD9-...
smallex
1

votes
0

answer
24

Views

How to continue a network request when user moves app to the background during the request?

I am building a messaging app in react-native. I have a problem where if the user is sending a message, then puts the app into the background before my redux (thunk) action containing all the network logic finishes, the message doesn't get created on the backend. However, I am still seeing the SUCC...
Alec Lorraine
1

votes
0

answer
356

Views

How to backup/restore SQLite database in React native

I am using andpor/react-native-sqlite-storage for managing SQLite database in React native. Now I want to backup all my database into a encrypted file then restore this at later time. I know how to do this in android but don't know how to implement this in react native. if it is in android below co...
Vinayak B
1

votes
1

answer
377

Views

Says please attach method to this component

I'm new to react native and i'm trying to send some data to my API,basically a POST request,added a button and trying to call the fetch request using that,but i'm not sure what am i doing wrong in this ?? It says 'Please attach method to this component' in the log,let me know if i'm doing anything w...
Venky
1

votes
1

answer
166

Views

Running RNTester

I am getting into React Native. I want to try running RNTester to check out the components they have. I had no issue runnning my other react project. I tried the commands: git clone https://github.com/facebook/react-native.git cd react-native npm install and also run the project with open RNT...
Calvin Tey
1

votes
2

answer
224

Views

react native ActivityIndicator is not rotating/animating

React Native version: 0.55 i have the following code in a screen in a react native app: And for some unknown reason, the ActivityIndicator is NOT rotating. It shows as static and start animating ONLY AFTER any state change occurs on the screen. any idea why?
Zorox
1

votes
0

answer
20

Views

Unable to load images on iphone, for android device code works properly

sortable.map(function (item, index) { var mapsThumbImage = sortable[index].maps.small !== null ? sortable[index].maps.small : null; serialNumber = serialNumber + 1; sharedRidesData.push( this.props.navigation.navigate('RidesDetails', { tripID: sortable[index].id, friendScreenFriendShipUserID: this.s...
Deepraj Parmar
1

votes
1

answer
992

Views

How to call API when App is killed in react native?

I Want to call API in the background when App killed and set the data in AsyncStorage. I used the following library but not working for me. react-native-background-task react-native-background-fetch I want to called the API without time scheduling. The above both use the time Scheduling. Please he...
Kirit Modi
1

votes
0

answer
202

Views

wix navigation drawer doesn't change screen

Basically I'm trying to navigate using the drawer , as follow : Drawer import React, { PureComponent } from 'react'; import { Navigation } from 'react-native-navigation'; import { List, ListItem } from 'react-native-elements'; const list = [ { title: 'Home', icon: 'av-timer' }, { title: 'Training',...
Abanoub
1

votes
0

answer
271

Views

React Native Animated.Value/Animated.timing without Animated.View

I have some state variables I want to animate for user micro-interaction. These variables are not properties of a view or style properties; they are actually properties of an SVG such as Circle radius (using react-native-svg). I have used window.requestAnimationFrame to animate these circles and it...
guru_florida
1

votes
1

answer
29

Views

Confusion in some ReactNative stuff

Below is the code for React Native enviorment. I can see that A main Component App is created. It has state inside it. But, Confused that what the actual purpose of using state. import React from 'react'; class App extends React.Component { constructor() { super(); this.state = { data: [ { 'id':1,...
1

votes
0

answer
158

Views

Can't make the grid with 100% height

I am trying to remove free space (marginBottom) on the screen which you see but it seems a bug.I am using Native-Base with expo. I tried some solutions but all of them brought this result. Here is the code: import React, { Component } from 'react'; import { Dimensions, ImageBackground, StatusBar, Pl...
Artyom

View additional questions