Questions tagged [react-native]

React Native lets you build native mobile apps using React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.

0
votes
0answers
9 views

How to build an iOS app that can communicate with each other?

I am building a POS system that required to use iPads. Cashier will use 1 iPad to make order, and customer on the other side would have another iPad showing the order and amount. The problem is we ...
1
vote
0answers
19 views

How to auto-hide react-navigation header with scroll down?

How can I automatically hide a header with a scroll-down action and show the header with a scroll-up action in Android using react-navigation in React Native? const HomeStack = ...
0
votes
1answer
12 views

How to make a view 100% window height?

I'm brand new to react native. I'm trying to figure out how to make a box full height. I have tried to add flex property to both container and view, but the height is not 100%. export default class ...
0
votes
0answers
21 views

How to add a google fonts in react native

Every time when I need to include fonts to my React Native project for IOS and Android I start to google searching ‘how to add google fonts in react native’ to make it faster.
-2
votes
1answer
14 views

React native new app problem with creating and running

Today I created my react-native app, launched it in xcode emulator and it was working fine. Then I deleted it and created a new one by react-native init projectname and react-native run-ios. This is ...
0
votes
0answers
10 views

`ReactApp/App.js`: Module 'react' does not exist in the Haste Module map - following instructions of iOS simulator with no success

I'm running 'react-native run-ios' for a new react app i'm init but I keep getting this error. I followed through the instructions given by the debugger in iOS simulator but unfortunately the ...
1
vote
0answers
13 views

setting up gradle plugin with DefaultTask to instantiate a class that renders react-native

I am trying to build a module with gradle that starts up a react-native app in a native app. Im following a guide that explains that a class extending from DefaultTask is responsible for the root ...
-1
votes
0answers
20 views

What is React Native method of getting user’s input like React’s e.target.innerText

‪please what is React Native’s replacement of React’s e.target.innerText? I’m trying to get what a user click on from TouchableOpacity component ‬
0
votes
1answer
28 views

Cannot implement TabBarIOS due to TypeError

I cannot impelment TabBarIOS. The code below renders an "Unhandled JS Exception: TypeError: Cannot read property 'Item' of undefined" I have minimal dependencies "react": "16.8.3", "react-native": "0....
-4
votes
0answers
14 views

I am having some issue while running the application

01:32 Google Chrome exited with error: Error: Exited with code 1 at ChildProcess. (/home/akbar/Desktop/AwesomeProjectsss/node_modules/opn/index.js:86:8) at Object.onceWrapper (events.js:317:30)...
0
votes
1answer
13 views

react native android manifest merging failed

my AndroidManifest.xml looks like this: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.package"> <uses-permission android:name="android.permission....
1
vote
1answer
31 views

How to handle exit app in one screen not in the whole app - React Native?

I have some issue with BackHandler, the issue is when running the app and go to the let's say Sign Up screen and touch the back in my mobile they will run the function and show the Alert to confirm, ...
-1
votes
1answer
14 views

onRequestClose in Modal not work in react-native

I use below code for Modal <Modal animationType='slide' transparent={true} visible={this.state.modalVisible} onRequestClose = { ()=> {console.log("...
0
votes
0answers
21 views

unable to install react-native project

Everything was working fine but when I tried to create a new project it throws this error. command used: react-native init AppName react-native-cli: 2.0.1 node -version :v10.15.1 npm -version :6.8.0
0
votes
0answers
13 views

How to solve can't find variable: Symbol in react native even with upgrade jsc-android

I have my react native app working on iOS, but it fails on Android with the error Can't find variable: Symbol in react native. I followed (Can't find variable Symbol using React Native with ...
0
votes
1answer
17 views

How to run an executable in a different dir when running make command in root dir?

Bit of a noob question but I'm building an app in react native and to make development a bit faster I'm using a make file for arbitrary commands. I need to run an executable in a sub-directory but can'...
0
votes
1answer
18 views

Header bar is invisible

I'm very new to React Native and I'm trying something out right now. I also got the first demo app running smoothly. Now I would like to test the example from the tutorial and add a header bar with ...
0
votes
0answers
10 views

Android back button does not work as expected

My screen should show a spinner while util I get a response from the async operation that's running. Expected Behavior While on loading screen, and then clicked Android Back Button to navigate to a ...
0
votes
0answers
11 views

failed to download video from RNfetchBlob

I am new in react-native. I want to download video from API but failed. I get the error "download manager failed to download from status code = 16". I found the video in my phone but cannot open ...
2
votes
2answers
41 views

Changing state for pressed item only

In my react-native app I have a function that changes the state of the pressed item from false to true, but the issue is that it's changing the state for all of the items not only the pressed one, i ...
0
votes
0answers
12 views

React-native android appstate issue

"react": "16.6.3", "react-native": "0.58.6" In my app I have implemented a pin code protected lock screen. Whenever a user closes and then re-opens the app, this screen pops-up prompting for a pin ...
-1
votes
0answers
11 views

QUESTION react-native run-ios does not update app

when I modify any part of my app's source code and then reload the app in the emulator, the app does not get the modified source code. for example, if I add a console.log statement, the app does not ...
0
votes
0answers
21 views

How to import dependency into React Native Project?

I’m having trouble adding a dependency to my React (Native) project. I’m trying to use createBottomMaterialNavigator, and the docs say it needs a certain library and says to install it thusly: npm ...
0
votes
0answers
16 views

Invariant Violation with react-native run-ios exclusive

i try to implement a react-native-canvas into my app. On entering the screen that contains the canvas, in the version generated with react-native run-ios, i receive following error: Invariant ...
0
votes
1answer
8 views

React native google pay and stripe integration error

I'm developing an application with react native and I am using this library https://github.com/tipsi/tipsi-stripe in order to use Google Pay with stripe integration. I already linked the test key from ...
0
votes
0answers
5 views

Preventing multiple simultaneous logins with Cognito

We have React Native app that uses Cognito for authentication. We would like to prevent the same user ID from logging in simultaneously from multiple devices. We were hopefully that we could use a ...
0
votes
0answers
10 views

Shell Script Invocation Error IOS after Ejecting From React Native

I ejected from expo project and I keep error in the IOS build. When I run npm run ios. The error I get is The following build commands failed: PhaseScriptExecution Install\ Third\ Party /...
0
votes
0answers
21 views

REACT NATIVE - View Image from dynamically(!) created Object

So I'm constructing an object from various input sources, including dynamically created references to images: // ... myObject.imgRef = require(`./files/${varname1}-${varname2}.png`); // ... I'm then ...
0
votes
0answers
12 views

Swipeable area in react-navigation drawer navigator

I am building an app with react-native and I have a drawer menu. I built the drawer menu with react-navigation createDrawerNavigator function. To open it I can swipe from left to right to open the ...
0
votes
0answers
13 views

How do I debug React Native with VSCode on Expo?

I'm sorry, I was able to get this all to work yesterday, but I can't get Expo to attach to my VS Code Debugger today, with various problems. At this moment I have no server running. Expo is open in ...
0
votes
1answer
8 views

Build failed with an exception. react-native-gesture-handler:compileDebugJavaWithJavac

I am getting this error while building app with command react-native run-android enter image description here
0
votes
0answers
15 views

React Native - Warning: Possible Unhandled Promise Rejection (id: 0)

Warning: Possible Unhandled Promise Rejection (id: 0) TypeError: Object is not a function (evaluating 'concreteComponentProvider()') This is the Warning I get after adding React Redux in my App. ...
1
vote
0answers
17 views

React-native android push notifications clear badge

I'm building an app, and I'm using push notifications with firebase. Everything is working fine, except one tiny thing that I don't get. When receiving a notification, badge is incremented. When I ...
0
votes
0answers
10 views

How do I connect to my React Native App from Deco IDE?

I just downloaded Deco IDE for React Native, and opened the sample project. I hit run to open the iOS simulator (on which I've run projects before using the standard npm start), and it appears to open ...
1
vote
0answers
25 views

React Native : target with hash string 'android-28' not found

I've got the below problem when trying to build a React Native android app from command line. It is on Ubuntu Server so no Android Studio GUI. I do have android-28 installed in the folder which the ...
0
votes
0answers
8 views

React native about e.nativeEvent point in Parent Responder and Child Responder

code class Demo extends React.Component { render(){ return ( <View onStartShouldSetResponder={(e)=>{ console.log('parent line',e.nativeEvent.locationX) ...
1
vote
2answers
19 views

how to calculate cyclomatic complexity javascript (react/react native)

There is a react native application, I want to make an cyclomatic complexity analysis. Please tell me what are the ready tools for this?
0
votes
1answer
24 views

Calling the dataSuccess function every time

I'm using the React Native Elements Search Bar. Every time I call him, the dataSuccess function is called. When searching, only the searchLead function needs to work. I have read the React native ...
0
votes
0answers
15 views

I have problem with FBSDK in my react-native app

I have a problem. "#import <FBSDKCoreKit/FBSDKAppEvents.h>" I see this string in file FBSDKCoreKit.h, but file FBSDKAppEvents.h is not here. Real path is FBSDKCoreKit/AppEvents/...
1
vote
0answers
38 views

React Native dynamic FlatList

I'm trying to make a FlatList with a dynamic number of columns which looks like this: I'm defining the item the width and height with an item property. I have already tried a lot of things and the ...
0
votes
1answer
23 views

React, image modal (ant-design) component is not rendering the second time

I am using ant-design as design library in my react project. I created an Image modal component for showing an image. class ImageModal extends Component { constructor(props) { super(); this....
0
votes
0answers
53 views

Component does not re-render correctly when store updates

I call myGET_REQUESTaction in a screen, my Sagamakes the request and triggers my GET_SUCCESS action but, my screen doesn't re-render on it's own, only when I update the component's state, a re-render ...
0
votes
0answers
12 views

TypeError: Network request failed. Android

Fetch with http:// request is giving error and with https:// its working fine eg getData(){ fetch('http://facebook.github.io/react-native/movies.json', { method: 'GET', headers: { Accept: '...
-1
votes
0answers
36 views

“Could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.”

{ "name": "RNNProject", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "...
0
votes
1answer
8 views

Native Base ListItem styles not applying - look broken

I have a fresh install of native base + expo and I'm trying to make a list. Usually, no problem but today something just aint right. And the code which makes this list. <Container> <...
0
votes
0answers
15 views

firebase in react native crashing the app

I had successfully integrated map in reat native Now when I tried integrating rnfirebase the app is crashing the app.gradle file has dependencies { implementation project(':react-native-...
-2
votes
0answers
9 views

Creating Dynamic Views in React Native via JSON received from server

I wants to make dynamically view components in React Native from JSON but not be able to find any proper solution for this. Please suggest me better way to make dynamically views in React Native. ...
-1
votes
0answers
7 views

React Native and stomp js imeplementation

I wanna use stompjs in order to communicate with the server in android. I tried most packages available but noting got worked. Do anyone implemented it successfully in react native?
0
votes
0answers
10 views

TextTrack gets picked up on Android but not on iOS using react-native-video-controls

I'm using react-native-video-controls to show videos in my project. The issue I'm facing is that the textTrack is showing perfectly in Android but not showing at all in iOS.
0
votes
0answers
44 views

Spy a method that has been called when onPress on an Alert

I am trying to test a removeService method that gets called when onPress 'ing inside an Alert like this Alert.alert( [...], onPress: () => removeService(); ); } this is the ...

http://mssss.yulina-kosm.ru