Questions tagged [react-native-ios]

0

votes
0

answer
7

Views

React Native ios Switch in FlatList not toggling after value changed

I am trying to toggle ios Switch in react native. But the switch comes back to initial position as soon as I change it. What I have: class ABC extends Component { constructor(props) { super(props) this.state = { obj: [] } } fetch(){ // fetch something from remote server, set it to state object array...
Partha
0

votes
1

answer
17

Views

Implement Search functionality with large data in react native

I have 50K+ records in my db,I want to add search filter without affecting performance of the application .Please suggest me what approach I should adopt to search the large data. I am calling api to fetch data from server. And used react native search functionality. But due to large data i have imp...
Nirali
0

votes
0

answer
6

Views

Logging out to a specific view in react native

I'm a beginner to react native development. At the moment I'm trying to set my navigation for the login logout process. This is my app flow right now Home -> SignIn -> Dashboard. Now when the user clicks the logout button in the dashboard it should go back to Home screen. This works well for the fir...
Gamerlegend
1

votes
2

answer
1.2k

Views

Requiring unknown module “11” error on iOS simulator

When I run the react native project with react-native run-ios.It shows the following error on my iOS simulator.On my android simulator, it is totally ok.I have deleted node module and reinstalled.But the error is still there.I don't want to entirely delete my ios/build folder since I have manually a...
Min Htet Oo
1

votes
3

answer
50

Views

How to call a parent function from a child - react-native

I'm struggling to find a solution to my problem , but i cannot find it anywhere . So my question is how to call a parent function from a child . The function has to be passed in a onPress={()} inside the child Parent.js constructor(props) { super(props); this.state = { loading: true }; this.state =...
PandaMastr
0

votes
0

answer
3

Views

Image hides after transform in React Native Web

I am using react native web and facing issues with images when using custom properties. The images are showing properly in Android but disappears in iOS. The image is visible when the value of rotateX is 0deg but disappears when the value changes to 180deg in iPhone. The same problem happens when I...
Santosh
0

votes
0

answer
2

Views

When using react-native iOS, How to fix 'User must be signed in with GoogleSignIn' error in firebase 'invites send' feature

I'm already using 'Dynamic Link' and 'Google Sign In' normally feature in my react-native app. And I want use to invites feature of firebase, But It was not working... The simulator generates an error when using the invitation feature. Error message image... Error message is 'Possible Unhandled Prom...
Kyungbin Ryu
0

votes
0

answer
5

Views

Not able to connect websocket to the server (https) on iOS app in both release and debug mode

CONTEXT: I have developed a react-native app that uses websocket (using socket.io-client) to connect to https web server (nginx). PROBLEM: I am not able to connect to the https webserver(nginx) using websocket on iOS app (real device) in both release and debug modes. EXTRA INFORMATION: The app is p...
user3763125
1

votes
2

answer
98

Views

Implementation of Flatlist/SectionList of Custom Card view's

I am trying to implement a list of custom card view's(Like the CollectionView in ios with custom collectionview cell). How can I achieve this any idea's or tutorials plz. I do not want to use third party. Could someone help me out.
iOSDev
1

votes
0

answer
14

Views

getInitialLink returns with NULL value after opening the deep link

I am working on a react Native app, that should open a firebase dynamic link. I can create the dynamic link with firebase API, but when a open the link and I would to log weather the app was from link opened, it returns just a NULL value. I use this method: componentWillMount() { firebase.links() .g...
Robert Kovacs
1

votes
2

answer
786

Views

React native detect IOS status bar height when calling / sharing hotspot?

Status bar height changes when calling or sharing personal hotspot on ios and overlaps view, how to detect status bar height when it changes?
Stanislau Buzunko
6

votes
0

answer
82

Views

How to implement AWS IoT(device) in React-Native?

I am trying to Implement AWS-IoT(device) using React-Native. I have used the packages, 1) aws-iot-device-sdk-js 2) react-native-aws-iot-device-shadows and got a lot of errors while using the package. I could debug few, but did not get expected results. I am Implementing AWS-IoT for Chatting applicat...
megha
-1

votes
0

answer
128

Views

Integrating SnapKit with React Native

I am trying to do Snapchat auth with SnapKit in React native. This is the snippet they give me: // objc #import [SCSDKLoginClient loginFromViewController:viewController completion:^(BOOL success, NSError * _Nullable error) { // do something }]; Now, I want to be able to call that and get the respon...
Jonovono
1

votes
2

answer
2.5k

Views

React native add active class when push the button

I have a 3 buttons on react native project iOS app. How can I set class active to clicked button and delete this class from others? Like addClass/removeClass that I had used on jquery?
Zolotukhin Dmitriy
2

votes
2

answer
1.4k

Views

Move file from tmp to documents using react-native-fs

I'm trying to move a file selected from a document picker to the Document Directory using react-native-fs and react-native-document picker. However, I get the error below: Error: “file name.mp3” couldn’t be moved to “Documents” because either the former doesn't exist, or the folder contain...
Olivia
2

votes
0

answer
239

Views

React Native Fetch Blob File Empty

We are having a problem with React Native Fetch Blob when a PDF is over 1mb in size. The file is being uploaded to Azure Blob Storage and works fine when the PDF is less than 1MB but as soon as the file is over 1MB the upload fails and the file in the container is empty. We are using the module in a...
Michael Edwards
2

votes
2

answer
465

Views

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 Sendshoppinapi(data) { try { let response = await fe...
Tanveerbyn
2

votes
1

answer
101

Views

'React/RCTEventEmitter.h' file not found (CocoaPods)

I'm going back to a React Native project and getting the following build error: 'React/RCTEventEmitter.h' file not found The project uses CocoaPods to bring in React and its dependencies. The error seems to be to do with a missing header in one of my custom modules. The specific line with the import...
Adamski
2

votes
0

answer
41

Views

react-native-maps fitToSuppliedMarker/fitToCorodinates does not show all markers

i am trying to use simple MapView and display 2 markers. they both appear correctly on map view but not visible on screen at same time (Image1 rendered by default) i have to perform manual drag operation before both markers can be seen on screen.(Image2 after i manually drag map so that they can b...
user1663148
2

votes
2

answer
75

Views

React Native geolocation heading is always -1 on iPhone 7

I am faced an issue that I can't solve for a weeks. Task: I heed to watch for a device position and its direction. Solution: I use method as described in docs this.watcher = navigator.geolocation.watchPosition((position) => { const latitude = position.coords.latitude; const longitude = position.coor...
Mausic
18

votes
3

answer
17.9k

Views

How to build .ipa application for react-native-ios?

I would try "How to generate .ipa file for react-native?" But I'cant get .ipa file. Any one cloud you explain how to get .ipa file .
Saravana Kumar
18

votes
6

answer
7.6k

Views

DeviceInfo native module is not installed correctly

So I tried implementing Facebook Login and followed all the steps accordingly. After having errors with FBSDKcorekit/FBSDKcorekit.h' file not found, I decided to pivot over to working on other components. Lo' and behold, I have this error giving me trouble now. I followed along with this video: htt...
kdizzle
5

votes
4

answer
8.5k

Views

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. It is happing in "react-native": "0.46.3" on ios r...
Alex Aung
3

votes
0

answer
756

Views

React-Native-Router-Flux Actions Refresh Tabs and keep sub-scene navigation stack

here is my problem, I have this configuration using react-native-router-flux 3.39.1 and RN 0.40.0: { Actions.refresh({ key: 'Scene-A' }) }} style={Styles.main}> { Actions.refresh({ key: 'Scene-B' }) }} style={Styles.main}> The problem is : When, from Scene-A I popTo Scene-A-1 then go to Scene-B Ta...
19

votes
3

answer
2k

Views

How to schedule background job at specific time in react native

I want to execute some Task T at specific time in a day in background in react native. I see that it is possible in android as of now using Headless JS. I found that this library implemented this https://github.com/vikeri/react-native-background-job and allows you to execute stuff in background. Thi...
N Sharma
3

votes
0

answer
185

Views

React-Native black screen when reboot after a crash in production

I have a problem with my react-native app that appear both android and iOS but only in release configuration. When the app crash for any reason, it will stuck at boot at the next start even if I kill it on device. It's hard to debug, cause it's in release mod only. Do someone have a similar issue...
Paul Aigueperse
3

votes
0

answer
678

Views

Download files on iOS with React Native

I am building an app that lets the user download a PDF file when he clicks on a button. I use the library react-native-fetch-blob for this purpose. It works well on Android. On iOS, the console log tells me the download has worked well, but: I don't see anything happening on screen (on Android, ther...
Arnaud
5

votes
1

answer
1.8k

Views

Service exited due to Abort trap: 6 in react-native IOS

I have react-native 0.40.0. react-native run-ios command builds project with success, but then app crashes with notice: Service exited due to Abort trap: 6! I try to launch installed app manually by tapping on it, but it crashes all the time with the same errors in console: Feb 5 23:25:23 Tony com....
Tony
19

votes
2

answer
13.2k

Views

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: https://i.stack.imgur.com/D4RA5.jpg 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,
G Clovs
5

votes
1

answer
376

Views

How to notify React Native that the size of a custom view has changed?

I'm writing a custom view for React Native iOS. Basically I have to make the text as large as possible (based on the view of the current view). I've done it by overriding reactSetFrame and changing the frame. The only issue is that the position of the view is wrong, here's a screenshot: It seems tha...
patrick
5

votes
3

answer
14.9k

Views

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 = { email :'', validated: false , } }; go = () => { const reg = /^\w+...
Avikrit Khati
5

votes
3

answer
194

Views

What is the best way to make function for getting current user coordinates in RN

I want to make one function for getting user coordinates and I somehow find that I am not sure my approach is good enough. I would like to know how others write this function to work 100% sure on ios and on android. Now I have something like this: function getUserLocation(callback: func) { Permissio...
1110
6

votes
1

answer
3.2k

Views

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: Choose category you like Bookmark articles that you like Get notifications abo...
NewTech Lover
0

votes
0

answer
49

Views

React Native iOS build failing for the following error: symbol(s) not found for architecture arm64

Hi I am trying to build a React Native project on iOS it has react-native-maps with it. My podfile looks like this # Uncomment the next line to define a global platform for your project platform :ios, '9.0' target 'APP_NAME' do # Pods for APP_NAME rn_path = '../node_modules/react-native' rn_maps_pat...
red-devil
5

votes
2

answer
4.4k

Views

Select a row in ListView react-native to get detail

i'm new in react-native. I saw an example in https://facebook.github.io/react-native/docs/sample-application-movies.html . It is building a movies app that fetch movies and display them in a ListView. How can we select a row to get its detail data and display it in other view? Please help. thanks :)...
2

votes
1

answer
6.1k

Views

In React Native how to Store values in session?

In React Native how to Store values in session ? I need to store login details (Username , Password) in session . Could you Please Give any ideas.
2

votes
4

answer
972

Views

Loading Json response to a dropdown in react native

I'm using a material dropdown in my application I fetch JSON object like this and it works fine. fetch('url', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ username : "admin" }) }).then((response) => response.json()) .then(...
unknown123
5

votes
2

answer
2.5k

Views

Expo build:ios fails with “Error while gathering & validating credentials”

I'm trying to run exp build:ios and it returns the following error: Running: bash.exe -c PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /mnt/c/Users/MyName/AppData/Roaming/npm/node_m odules/exp/node_modules/@expo/traveling-fastlane-linux/traveling-fastlane-1.4.7-linux-x86_64/val...
Abdulaziz
3

votes
1

answer
1.5k

Views

Simulate slow internet connection for React Native app development

How can i simulate a slow internet connection for React Native app testing on iOs simulator? I tried with Chrome Developers tools to change throttle in Network tab as said here: https://stackoverflow.com/a/26313279/1206613, but with no luck. Also tried this solution, but also no go: http://thisbyt...
Cherniv
3

votes
2

answer
546

Views

How do I detect property changes with RCT_EXPORT_VIEW_PROPERTY in Objective C?

RCT_EXPORT_MODULE() - (UIView *)view { return [[RNNativeListview alloc] initWithBridge:self.bridge]; } RCT_EXPORT_VIEW_PROPERTY(rowHeight, float) RCT_EXPORT_VIEW_PROPERTY(numRows, NSInteger) I want to reload my UITableView whenever js updates numRows. How do I listen for this?
Stephen Horvath

View additional questions