Questions tagged [react-native]

React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI from declarative components. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.

0
votes
0answers
2 views

Change the devolution value in a Work Order Item

So a have a list of items in an app (see the image below). There is a lot of screens with different items. Work Order Items I need to change the number on the Right-Side, that represents a ...
0
votes
0answers
6 views

Different splash screen for themes.

I need my splash screen to depend on the chosen theme. We use react-native-splash-screen in the project. Is it even possible with react-native?
0
votes
0answers
5 views

how can I use ReactNative WebView component to show a specific part of a webpage in my Android app?

I want to use ReactNative webView component in my android app and show just a specific part of a web-page. for example I want to show the contents specified by the red rectangle in the image below: ...
0
votes
0answers
8 views

(React Native) Expo Detach Causing Android Problems

We detached from Expo but are running into some issues on Android. How does the DetachBuildConstants.java file get generated? It’s used in MainActivity.java to set the development URL but it needs to ...
0
votes
1answer
9 views

Using react-native-dialog, how to get Dialog.Input content?

<Dialog.Container visible={this.state.dialogSendEmailVisible}> <Dialog.Title>Password Recovery</Dialog.Title> <Dialog.Input label="Email"></Dialog.Input> ...
0
votes
0answers
5 views

navigate.dispatch(DrawerActions.closeDrawer()) not working in React Native

On click of a cross button the drawer should be closed, that is the thing I am trying. I have passed down the props inside component but giving error that navigate.dispatch(DrawerActions....
0
votes
0answers
16 views

Fail on running first react-native application

I started to learn react-native and i fall even at running application. Here's my error log. Hope that someone will help me. The development server returned response error code: 500 URL: http:...
0
votes
0answers
14 views

DatePickerAndroid “spinner” mode opens both “spinner” and “calendar” in Tablet

When i open DatePickerAndroid with mode "spinner" in API 23 phone (android 6.0) it opens correctly(also tested on android 8). But if i change to a tablet (Nexus 9 2048x1563 xhdpi) with API 23 (android ...
0
votes
0answers
5 views

How to prevent Drawer Navigator refresh in React Navigation?

I have a DrawerNavigator with a list of screens. The problem is that if I go to another screen and come back, the first screen re-initializes completely. How to prevent this re-initialization so that ...
0
votes
0answers
11 views

React native Touch events are passing through absolute view

So I'm using react-navigation, and I have a view that I want to show when an icon is pressed in the toolbar, I already made it using another component and setting the component to be displayed as ...
0
votes
1answer
18 views

how send props using Field redux-form

I created a component and am using the Field of redux-form but I can't pass him the props, what should I do? I'm trying to use the teste componet renderInput({ input, label, type, meta: { touched, ...
0
votes
0answers
13 views

Payumoney integration in react-native

I am trying to integrating payumoney payment gateway in react-native but when I pressed "Pay" button I got an error "java.lang.double cannot be cast to java.lang.string" on the mobile screen. I ...
0
votes
0answers
9 views

how upload a native android app that has a React Native version?

I create an app using the Expo SDK (React Native) then I built it and uploaded it to Google Play. The Google Play Console didn't ask me for Apk Sig. But now, I create a version 2 of the app using ...
0
votes
0answers
12 views

Width and Height Animation with Pose on React Native

I really love to use pose on react native because it's really easy. But I got some small issues. My question is; is there any way to use pose on react native to make animations with width, height or ...
0
votes
0answers
12 views

stacknavigation/conditionalrendering ract native?

I want to have a loginscreen that leads to a homescreen if succeed - should that be made by conditionalrendering or how should it be made correct? Then I want to have a HomeScreen where you could go ...
0
votes
1answer
28 views

Android Studio won't clear cache after upgrade to 3.2

Just upgraded Android Studio to 3.2. Now, every time I try to use run the app or use Build > "Build Bundle/APK", "Generate Signed APK/Bundle" I get an older version of the app. What's very strange ...
0
votes
1answer
16 views

Not able to set data to expandable list in react native

I have an expandable section list in my App and I need to populate values in it from two different api calls. In this link the sample is populated from a local variable. Also I noticed that the data ...
-1
votes
3answers
18 views

javascript usual function declaration is not working inside the React Component

am a newbie for javascript and react.Can anyone tell me what is the problem when am writing usual function declaration inside the class Component.It's showing error unexpected token.construtor,method,...
0
votes
2answers
18 views

undefined is not an object (evaluating '_this.state.seg') in react native

Am trying to set scrollview segment in react native and am already set the swipable tabs Here my code is import React, { Component } from 'react'; import { Platform, StyleSheet, ScrollView, ...
0
votes
0answers
10 views

How to fix errors when developing in a non-debug mode?

At the time of developing I am disabling Debug JS Remotely and my application has been getting that: I know about a piece of code where it is happening (some vendor package). I can't solve problems ...
0
votes
0answers
12 views

how to fix application bundle was not found at the provided path Error?

I am trying to launch a react native hello world app , but I am having an error saying that application bundle was not found at the provided path.. , this is the path that I have on my xcode bundle ...
0
votes
0answers
26 views

undfined is not a function (evaluating '_this2.props.handlepopupDismissed()')

componentDidMount() { FingerprintScanner .authenticate({ onAttempt: this.handleAuthenticationAttempted }) .then(() => { this.props.handlePopupDismissed(); Alert.alert('...
0
votes
1answer
24 views

React native button below picker

I create a react native app for iOS and I want to place a load button below a picker. Currently I get the following output at the simulator. Does anybody know how to place the button below the picker? ...
0
votes
1answer
31 views

react tutorial first sentence, little bit strange

I am reading the tutorial on react: https://reactjs.org/tutorial/tutorial.html#what-is-react But the first sentence feels a little bit strange to me. And with the sentence I mean this sentence: We ...
0
votes
0answers
8 views

React native router flux tabbar position top activebackground color is not working help me

This is my scene that has tabbar with a position top. I have already tried lots of solutions but did not get success. Are there any methods? Tabbar bottom is working with activebackgroundcolor but ...
0
votes
1answer
16 views

how to implement recaptcha in react native app?

I have used "npm install react-recaptcha-google" for recaptcha integration. But it gets error to me. ‘Invariant violation: View config not found for name div. make sureto start component names ...
0
votes
1answer
27 views

Initializing state of a component from another component and get the state value

I am new to the reactnative/js world with the asynchronous mechanisms and I read a lot of similar examples but it is not clear to me. So please find here my questions. I am trying to create a ...
1
vote
0answers
12 views

link user parameter “value” into event value in firebase event console

I'm generating an event in my mobile app using this method: var Param = {}; Param.VALUE = response[1]; firebase.analytics().logEvent(`Purchase_report`, Param); and I am able to receive ...
1
vote
0answers
24 views

How to disable CAPTCHA for QA env in firebase auth (react native app)?

We are working on the test automation framework for react-native app. When we try to log in on the app on iOS build (manually or automatically) we get redirected to the captcha : How we can to ...
0
votes
0answers
11 views

Why appium stops at finding element in a react native android app?

I have a react native app which has accessibility id with and I am using XPath with that accessibility id. But when I run my code the appium is stopping at finding the element, it is not going forward,...
0
votes
0answers
8 views

Android TrustKit set environment variable domains

I have my react-native app which uses react-native-config in order to centralise all the settings needed for each environment in a .env file. Recently, I've implemented certificate pinning using ...
0
votes
1answer
22 views

alignSelf Does not make any change with layout “React native”

JSX expression of the component as given below <ImageBackground source={require('../images/background.jpg')} style={styles.container}> <View style={styles.container}&...
0
votes
1answer
27 views

React Native Picker with Image Icon

I am trying to build a language selection picker in react native which has a picture of the country's flag next to the label, like this: The icons have to be images and not unicode. I've had a look ...
0
votes
2answers
27 views

Android - uses-permission to Download and save file in a specific Path

I would like create and save file in Download path on my Huawai (Android 8) App. I'm on React Native app and i use rn-fetch-blob module. My method : const path = `${RNFetchBlob.fs.dirs.DownloadDir}...
0
votes
2answers
14 views

How to send data back to previous sceen when using navigation.goBack()?

I've got screen 1 from which I navigate to screen 2 using: navigation.navigate('Screen2') From this screen, I would like to go to the previous one, which simple: navigation.goBack() However I'm ...
0
votes
0answers
13 views

Reload screen when the tab is changed or tab is pressed twice in react navigation 2?

I have 3 tabs in my project Home Bookmarks Random Now I want to reload (fetch data) when i change the tab from either home to bookmarks or random or vice versa. I could only call them once ie ...
0
votes
0answers
32 views

How to import online script in react native

I am trying to import an online javascript file. Does anybody know how I can import this in a react native project? Like in HTML: <script src="http://labelwriter.com/software/dls/sdk/js/DYMO....
0
votes
0answers
11 views

Missing app.json when trying to eject CRNA

When I run npm run eject after create-react-native-app (CRNA), I get the error message in my Terminal saying Error: Missing app.json. See https://docs.expo.io/, Couldn't read app.json. I read on ...
0
votes
0answers
5 views

react-native-track-player is not working. App crashes on `TrackPlayer.setupPlayer({})`

I am not able to run the player even on simulator. The application crashes on start without any error. TrackPlayer.setupPlayer({}) crashes the app. Can anyone please provide me some guidance to run on ...
2
votes
2answers
27 views

Debugging React Native apps in background

While testing a release build of our React Native app on iOS, we discovered a defect with an input component that only occurred after the app had been in the background for a longer time (e.g. 1h). ...
0
votes
0answers
18 views

Image borderRadius is not working in react native

I have used borderRadius in Image and loop it. It works in some images however others are rectangular. If I touch it then it shows the radius and disappears as soon as it is untouched. Using overflow ...
2
votes
3answers
33 views

What is the real world example of real DOM and virtual DOM in React?

If someone asks for the example of Real DOM and Virtual DOM, may be programmatically? How can this be explained?
0
votes
2answers
14 views

How do I call code or respond to events in React Native?

How do I call code or respond to events in my native application with React Native? Can anyone explain with an example?
-5
votes
0answers
22 views

I have no problem working. react-native 0.57.1 [on hold]

enter image description here I have no problem working.
0
votes
0answers
22 views

Strapi - React Native - Upload File

I'm trying to upload an image from my android application to my Strapi API. I get responseJsonFromServer = "True". However, the image was not uploaded. I'm a beginner on React Native. Do I use wrong ...
0
votes
0answers
14 views

redux reducer crashes expo app when reducer called or when redux props rerender page

I am trying to submit an object to a redux reducer and I can get the data all the way to the reducer, however when I click the button, the expo app crashes with no error indicator. If I don't change ...
0
votes
1answer
20 views

Role-dependent user login

From the API server, I receive the role information after logging in. If it is a user with management rights, it should load a different screen after logging in. App.js This must be loaded for the ...
0
votes
3answers
23 views

Equivalent of FlatList from React Native in React

Is there an equivalent of the FlatList component from React Native in React? Having built a mobile app in React Native, I'm now converting it to React for a web app. (Have considered using react-...
0
votes
0answers
8 views

Testing react native components with enzyme shallow in a context

I have a component however it's stuck under a react-intl context. I want to test state change in my component however, shallow render only renders the <IntlProvider />, and enzyme's mount doesn'...
0
votes
0answers
5 views

Dynamic theme with wix Calendars library [React Native]

I have Calendars library in my projects and I need to implement functionality of calendar with marked dates. When I press on marked date there should be an added border to the container of the date. ...