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.

0
votes
0answers
19 views

React-native Sometimes giving Unexpected token < in JSON at position 0, Sometimes working fine [duplicate]

I am trying to fetch data from an API which is in JSON format but in the fetch function SOMETIMES it is coming as HTML and some times as JSON so I am getting the above error when the response is HTML ...
1
vote
1answer
26 views

How to use SVG-Uri in React-native or Expo?

I downloaded the expo-svg-uri module to use the Svg image. But the image doesn't come out right. Code I failed: <View style={styles.container}> <SvgUri width="200" height=...
0
votes
0answers
18 views

React native module as part of the cocoa pod

I have to create one framework module in react native which has to be distributed through cocoapod. I have created podspec for the React Library and have added React as a dependency. Now, in my ...
0
votes
1answer
17 views

How can i calculate appState background time and appState foreground(active) state time in react-native?

I want to calculate the time(in seconds) when my app is in background and also the time when it is in foreground. How can I calculate background state time and foreground state time in react-native?
-2
votes
0answers
22 views

React-Native: Login/Logout UI flow with Bottom tab navigation

This is the popular flow in iOS Login Show Root tab bar controller UI with 2-3 tabs after login In last tab screen, logout button is present, on tap it should show login screen Same i'm trying to ...
0
votes
1answer
13 views

React native header issue

I want to add a header with a title and a subtitle in the center . Can anyone please explain how to do this ? I am unable to view the header.
0
votes
0answers
13 views

TouchId doesn't work in ios for the package react-native-pincode

I am using the package react-native-pincode for authentication of my app. But while authentication using touch-id in ios it doesn't work and stays on the same pincode screen. Can anyone help me figure ...
1
vote
0answers
27 views

How to google authenticate with fire-base in react-native project?

I am using Social Auth! plugin to sign in with google using firebase and I have followed all the steps according to the document. my code is : import { GoogleSignin } from 'react-native-google-signin'...
0
votes
0answers
7 views

How to share in react native image and message both for iOS?

I am trying to share screenshot image and download link of the app with react-native-share and Share library. Android is working fine only the issue with IOS for WhatsApp only. If anyone having a ...
0
votes
0answers
16 views

React native project is not working in iOS. How to rewrite iOS configurations?

My project works great in android. When I try to build it in iOS, it was giving Print: Entry, ":CFBundleIdentifier", Does Not Exist error. I've tried so many things but nothing worked unless I upgrade ...
0
votes
0answers
22 views

React-Native: POST call with JSON.stringify isn't working

i have HTTP POST call like this static login(email, pw, callback) { let url = APIConfig.BASE_URL + APIConfig.LOGIN console.log(url); fetch(url, { method: HTTPMethod.POST, ...
0
votes
0answers
12 views

Native module cannot be null, but the app works fine

react-native run-ios successfully builds the project and the app is started at simulator, however, I got the error below, I tried to get more details in the Xcode log, I only got this: [fatal][tid:...
-2
votes
0answers
14 views

undefined is not an object (evaluating '_reactPropTypes.string') Error

I got this error while launching the app on ios-simulator. As per the given solutions I also replaced import PropTypes from 'react'; with import PropTypes from 'prop-types'; Do I have to make changes ...
0
votes
1answer
225 views

Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65 - react native

I have a RN project, it runs fine in android but it is giving problems in iOS. I've used react-native-firebase in it. Is it the issue generated by firebase? What didn’t work: -Used legacy setting in ...
0
votes
0answers
26 views

React Native: How to stop map markers from re-rendering on every state update

I have a component that has a map with multiple custom markers for various locations and a carousel with cards for those same locations. When a user presses a marker, it should show the callout and ...
0
votes
0answers
12 views

exception '-[nsnull absolutestring] was thrown while invoking getinitialurl on target linkingmanager

Full error thrown: [fatal][tid:com.facebook.react.linkingmanagerqueue] exception '-[nsnull absolutestring]: unrecognized selector sent to instance 0x10d8b5ea8' was thrown while invoking ...
0
votes
2answers
17 views

How to pass menu list from API to Custom DrawerNavigator?

I am new to React . I am creating custom drawer navigation using DrawerNavigator. I wanted to fetch Category list from API and add list of menu with parameter cat_id . Each category will go to same ...
0
votes
0answers
18 views

Unable to initialize RCTBridge in swift

I am trying to get an instance of the react native bridge module in my swift code. To be precise, within a share extension. class ShareViewController: SLComposeServiceViewController { var ...
0
votes
1answer
34 views

How can i add images to the react-native-layout-grid? There are no props mentioned specifically in the Github repository

I am using the react-native-layout-grid package for displaying a grid layout. I want to add images in the grid layout instead of text/string. How can i do it? import React, { Component } from 'react';...
0
votes
0answers
12 views

How to solve --React native hangs at command run-ios?

I am new to react native development. I have installed the node, npm, watchman and command line tool in sequence as suggested. Now I have created the new project using init command. It hangs when i ...
0
votes
0answers
20 views

React-native runs on Iphone X -12.2 but not on Iphone XR (Actual device)

I can run react native on the simulator and it works fine. But the second I try to install with Xcode on my Iphone XR. The app crashes. I get the following as a result. I've tried seeing if there ...
1
vote
1answer
56 views

onChangeText is not triggered during pasting value in TextInput

onChangeText is not triggered during pasting value in TextInput in IOS. How is possible to fix it? Here is my TextInput: <TextInput value={this.state.username} ...
0
votes
0answers
87 views

Trouble Animating a background Image

I am trying to recreate a dribbble animation to improve my design skills. This particular animation confused me. After the bottom action sheet animated, the background image is being animated on the Y-...
0
votes
0answers
13 views

Share video with google drive using Share

for my React Native app, I am trying to manipulate Share so that when a user takes a video on the app. They press upload and the share UI comes up. Then they need to select google drive so they can ...
0
votes
0answers
12 views

How to call functions in another native module

I get alot of data in my app using bluetooth. I need this data in another native module. So I get a callback of the ble library into javascript and then I pass the data into my other module. That ...
0
votes
1answer
20 views

Deploy internal to organization

Is there any documentation on how to deploy a react-native-ios application from say a website to be installed on a iOS device without uploading the package to the AppStore? This app has no need to ...
0
votes
1answer
22 views

Build failed for ios after configuring branch.io throwing node_modules/react-native-branch/ios/Branch-SDK/Fabric/Fabric.h: No such file or directory

Excuse me if its a silly mistake but its my first project on mobile-development and react-native. I do have very less knowledge on mobile development environment configuration. I am trying for ...
0
votes
2answers
25 views

React-Native- Cannot Read Property '0' of Undefined

I'm new to react-native. I am building a calculator app through a tutorial where I'm at the point right now where I'm trying to set it up where pressing one of the calculator buttons will log to the ...
1
vote
1answer
20 views

Getting error on iOS machine when running react native project through Xcode. Error code is -999

I just finished development on Windows machine for Android device in React Native and when tried to run same code on Mac with Xcode having bundle load issue with could not connect to development ...
0
votes
0answers
11 views

React Native iOS app on release mode not working without wifi

My RN app that used to work fine is now crashing or just not loading after splashscreen when I'm not connected to wifi. I looked at the logs but I don't know what to search for. I have this thread 1 ...
0
votes
1answer
8 views

The Developement Server Returned Error 500

First of all when I create a project and run it using: react-native run-android It works just fine but now when I have added some code for login screen it gives me this error: Development Server ...
0
votes
1answer
32 views

How to import framework file without cocopods?

My project is React Native and I try to add native framework file to my project when I clean and build project I get the error Framework not found BRPtouchPrinterLit Here is what I try Step 1: ...
0
votes
1answer
29 views

React Native language change doesn't affecting immediately

I'm using react-native-i18n in my project. After changing language to Arabic all text data are automatically aligned to the Right side of the screen properly. But all other components like Icons are ...
0
votes
0answers
21 views

React Native function undefined, but is defined [duplicate]

I am trying to call a function within a handleButtonPress() function, but when doing so, the function is throwing an error and is "undefined". I have it defined, so I am not sure what the error is or ...
-1
votes
0answers
22 views

How to create a custom React Native Dropdown?

How can I create a dropdown like this with circle on left of the items? Can it be possible using react-native-material-dropdown? Or any other library?
0
votes
0answers
23 views

React Native: Network request failed for HTTPS in device

I am using https connection for REST API, While hitting POST request through iPhone device am getting Network Request Failed error but in the simulator, it's working without any issue. Note: If I ...
0
votes
0answers
24 views

How to Convert React Native Objective C Project into Swift

I'm developing an iOS Project which includes MongoDB Stitch and React-Native. MongoDB API is written in Swift and React Native iOS Structure is based on Objective-C. So I decided to convert Objective-...
0
votes
0answers
18 views

Unwanted Top and Bottom black border in react-native mobile app

I tried running on all devices iPhone 5s, iPhone 6, iPhone 6 plus, iPhone 7, iPhone 7 plus... iPhone X with my Mobile app by react-native run-ios command. I get top and bottom black background/border. ...
0
votes
0answers
41 views

Error: Could not find image file:///Users/Library/Developer/CoreSimulator/Devices/

I have react-native ExpoKit IOS app, suddenly I have started to get an error, that app can't find images: Could not find image file:///Users/Library/Developer/CoreSimulator/Devices/ When I'm ...
0
votes
1answer
52 views

When I react-native run-ios bundle not working

I have a react-native project When I start react-native run-android on windows 10 environment it's working but I worked react-native run-ios MacOS environment my bundle terminal gives this error, ...
1
vote
1answer
41 views

How can We Integrate K net Payment in react-native?

Hello I am working on react native project. Here in this project how should we integrate K-net Payment Integration. Any SDK's is possible for this please let me give the guidance.
0
votes
0answers
23 views

Error with TextInputMask component in React Native

I am trying to implement the TextInputMask component for an input box on this program I am working on. When trying to run it the first time, I am getting the error displayed in the image below: I ...
0
votes
0answers
11 views

How to use react-native--calendar custom marking type as well as multi-dot marking

I am using react-native-calendar and I want to use custom marking type as well as multi-dot marking type. The calendar library seems to give the possibility to use only one marking type. How can I ...
1
vote
2answers
40 views

How to Implement checkbox in react-native which supports both ios and android in Flatlist

The checkbox(https://facebook.github.io/react-native/docs/checkbox ) i.e present in the official website only supports Android. How can we implement checkbox in react-native which can be supported ...
0
votes
1answer
21 views

IOS release build crashes: TypeError: n.render is not a function. (In 'n.render()', 'n.render' is undefined) React Native 0.56

I have recently upgraded to react native 0.56 . I have been getting a lot of errors but I have fixed most of it. But now When I try to run the app in release mode I get this js error . 2019-05-01 11:...
0
votes
0answers
18 views

What is the right way to import custom react native module on Xcode?

I'm building a custom RN module for iOS and Android. Following some others modules, I notice that the dependencies it's never imported to the module itself, but always imported in the main app. For ...
0
votes
0answers
13 views

Ios App crashes when used `logInWithPublishPermissions` form react-native-fbsdk without any error

I have an app where I am asking for manage pages permission from user with logInWithPublishPermissions. Now the problem here is if the user dose not select any page to connect the app crashed with ...
0
votes
2answers
60 views

react-native bundle not working (done but not bundle project)

I'm developing a react native project when i run npm start -- --reset-cache react-native run-ios open a terminal Running Metro Bundler on port 8081. and it's done but the simulation did not ...
0
votes
0answers
11 views

how to get current instance in a method that the native exported to react native?

I have a controller class that inherit UIViewController, which exported a method to react native. In the exported method, I use 'self' to get current instance of the class, but it is a new instance ...
0
votes
1answer
37 views

How to compare two array's value and if both are equal or not return diff. button for that

I'm rendering a Flatlist and in that I want to display a button based on if the ID of button is in my cart. How can I do so.... this is my code for button: addBtn = (id) => { try{ ...

http://mssss.yulina-kosm.ru