Most voted "react-native" questions
React Native is a framework based on the React library, developed by Facebook engineers that consists of a series of tools that enable the creation of mobile applications with native interfaces for the iOS and Android platform using Javascript.
Learn more…700 questions
Sort by count of
-
0
votes1
answer1173
viewsREACT-NATIVE ERROR
First good afternoon, I’m starting with React-Native now, and I followed a tutorial to configure my development environment (windows), ultilizing genymotion, however whenever I create a new project,…
-
0
votes0
answers451
viewsReact Native - Use camera
I would like a help I started a project in which I now need to use the Camera of the mobile. I created the project with the create-react-native-app, however I can’t find a component or solution…
-
0
votes1
answer173
viewsI’m starting to program in React Native. What is the best software to emulate android? and to edit lines of programming
As mentioned above, I’m starting to program apps for Mobile, and I’m having a lot of doubts, one of them and the fact that I watched a tutorial on how to install React and so on... In which the…
-
0
votes0
answers38
viewsActivity class {} does not exist. Mulator
Good afternoon. I have been having this problem for 3 days. When I try to install the debugging in the emulator the following error occurs: error type 3 Error: Activity class…
-
0
votes0
answers69
viewsReact Native Error
Could someone help me I received the following feedback Não esqueça de cancelar as notificações e agendar as notificações do dia seguinte quando o usuário terminar um quiz :thumbsup:. Você pode…
-
0
votes0
answers186
viewssetState is not working according
Hello, I’m doing an application in reactnative and I’m trying to set a state but it doesn’t work, can you help me? follows the source(Obs the handleClickFooter function which does not arrow the…
-
0
votes1
answer136
viewsAccess React Native Scrollable Tab View state
I have an React Native application with the React-Native-scrollable-tab-view library, where this tab view contains 3 child nodes: App.js <ScrollableTabView style={{marginTop: 0, backgroundColor:…
react-nativeasked 6 years, 3 months ago Jhonatan Pereira 537 -
0
votes1
answer160
viewsHow do I consume this json in React?
I would like to consume this json but it is giving many errors https://facebook.github.io/react-native/movies.json would like to show on Flatlist…
react-nativeasked 5 years, 8 months ago Eduardo 3 -
0
votes0
answers113
viewsError installing android emulator for React
My Android Studio does not open the React-Activate in any way, I cannot open the React project. Android Studio is running normal with native files, only React does not work. already installed…
-
0
votes1
answer766
viewsHow to set up the android version in the React-Native app
Hello I am beginner in React-Native, I would like to see an example and where I configure the minimum version of android. For example: Wanted to compile the version to run on android 8 at least.…
react-nativeasked 5 years, 8 months ago Tiago 5 -
0
votes1
answer130
viewsChange variable and save it by Asyncstorage
I am developing an APP that contains several texts, so the font size of the texts are imported from a single variable. I’m trying to add an option to make the font bigger, and save the size of the…
-
0
votes2
answers676
viewsPersist currentUser firebase with React Native
This function is triggered by clicking the Login button: export const loginUser = ({ email, password }) => { return (dispatch) => { dispatch({ type: LOGIN_USER });…
-
0
votes1
answer167
viewsSetstate does not work within component
Hello, I’m trying to give a setstate but when I run it returns me that is not a function renderInput({ input, label, type, meta: { touched, error, warning } }) { onChangeTextDestino = async (param)…
-
0
votes1
answer1420
viewsHow to inhibit the "back" button in an React Native application using React-navigation-Fluid-Transitions
I’m creating a mobile application that uses as a basis react-native. To make the transition between the screens and to have a better user experience, I am using the libraries react-navigation and…
react-native react-navigation react-navigation-fluid-transitionsasked 6 years, 1 month ago LeandroLuk 4,989 -
0
votes1
answer133
viewsReference in the mongodb
Well, guys, I know there’s no such thing as a relationship, but I need to know how to do something related. I have two collections a call, Extinguisher and the other Historical, I want an extinct…
-
0
votes1
answer3819
viewsReact-Native keyboard problems
Good night, I’m having a problem on the keyboard of my android application, I would like when opening the keyboard of the same, only the bottom text box if moved, or the items of the screen adjusted…
-
0
votes1
answer165
viewsError running React Native app out of debug mode
I’m having a weird mistake that I couldn’t find anywhere to fix. When running the app in debug mode it goes smoothly with no errors but when running the same app with no changes with debug mode…
-
0
votes2
answers700
viewsHow to pass a touch event via props to a child component?
I have a parent component of which I have a button and I want to pass onPress to the child component, I am new to React-Native and I have this doubt, you can help me ??
-
0
votes1
answer462
viewsHow to disable React Navigation Drawer on specific routes
Hello, I’m creating an application that should not display Drawer on specific routes like login, registration, etc. Currently my file is like this: import React from 'react' import { FluidNavigator…
-
0
votes2
answers201
viewsCameraroll React-Native
I need to create a script that returns and list the images found in the user’s mobile gallery. For this, I am using the getPhotos method of the React-Native Cameraroll component…
-
0
votes1
answer785
viewsAdd +1 min to countdown timer - With timer already finished or in progress
Each time I click a button, I want to add +1 min to the timer. <Button onPress={this.somarUmMinuto} title="Somar 1 minuto" color="#007FFF" accessibilityLabel="Somar 1 minuto" /> Code used to…
-
0
votes2
answers4864
viewsRequest React Activate with Aces
I am trying to make a request with Axios for a server, and for that I need to send an access token. The token is correct, but nothing is loading on the network and the request is not working…
-
0
votes1
answer316
viewsProblem running APK Android 9
generated an application with React-Turn on that is working login function on all android versions from 4.1 to 8.1, but in version 9 it is not calling the network at the time it is requested. I’m…
-
0
votes1
answer359
viewsAttributes in React Native
Good afternoon, I am with a project in which I have to store a data of a Textinput and validate if it is empty or if it has any value. I’ve tried using setState in input and calling a function that…
-
0
votes1
answer93
viewsAttribute json Undefined
Good afternoon, everyone, I’m having a problem that I can’t access the APPLICATION attribute of json, he always returns undefined. When executing console.log(aplic[0]) he prints this json, but if I…
react-nativeasked 6 years, 1 month ago Alex Malmann Becker 1 -
0
votes1
answer116
viewsError while running a React-Native and firebase project
Good morning/dawn, I’m having the error giving React-Native run-android the code is this import firebase from 'firebase'; import React, { Component } from 'react'; import {Text, View, Button} from…
-
0
votes0
answers95
viewsProblems with React cache
I’m having problems caching in React On. When I upload an image to the server, it’s all right. The image I saved appears on the App home screen. But when I put another image in place, this new image…
-
0
votes2
answers209
viewsbind( ) in Javascript / React - Doubt
why do I necessarily need to bind() a function within a constructor? type: constructor (props){ super(props); this.funcao = this.funcao.bind(this); } Couldn’t do this bind() without the builder?…
-
0
votes2
answers121
viewsWhy do I need to use a constructor to create my style variable?
import React, {Component} from 'react'; import {StyleSheet, TouchableOpacity, Text, View} from 'react-native'; class Botao extends Component{ this.style = StyleSheet.create({}); // ESSE CODIGO TA…
-
0
votes1
answer2028
viewsHow to prevent an React Native application from returning by clicking on the Backbutton using React Navigation
Hello, I am creating an application in React Native, and for the browsing I have been working with the plugin React Navigation. The structure of my project is like this: import React from 'react';…
react react-native react-navigation react-navigation-fluid-transitionsasked 6 years ago LeandroLuk 4,989 -
0
votes1
answer197
viewsError executing React-Native init command
I’m trying to create a project React Native in the MacOs for Terminal. I type the following commands in Terminal: > cd Desktop > mkdir curso-react > cd curso-react/ > react-native init…
-
0
votes1
answer205
viewsError when implementing Tensorflow in React Native
Save! I’m trying to implement the library Tensorflow in my React Native application, based in that and in that tutorials. But I can’t even run the project, getting the following error: Unable to…
-
0
votes1
answer603
viewsHow to get the status of a React within a React Native
Hello, I’m new to React Native and I’m having problems to pass the status of a Reducer to a component I made. the same is as follows: import React from 'react' import { connect } from 'react-redux'…
-
0
votes2
answers1750
viewsHow to use JS object variables for colors in CSS
if I have an object JS for ex: cores = { main: "#333", institutional: "blue" } and I use styled components to build my styles css so I create him like this: styled.View` background-color:…
javascript css react react-native styled-componentsasked 5 years, 4 months ago Julio Henrique 4,352 -
0
votes1
answer36
viewsHierarchy of requests with Await
Next... I need to make a hierarchy of requests that depend on each other. I did the whole structure, but when I run the code they are solved asynchronously, without waiting for the resolution of a…
-
0
votes1
answer304
viewsHow to authenticate in Firebase through Google using Expo (React Native)?
I have a web application on firebase, but I’m using it in the development of an android/Ios app using Expo. I want the authentication to be done by Google, but it turns out that because it was…
-
0
votes2
answers413
viewsHow to detect the hardwareBackPress event with React Native when you have an open Modal
Hello, there is 1 week that I am trying to find this problem and I can not solve... I have an application that at a certain time opens a modal that overlaps the main screen. Here are my codes...…
react-nativeasked 6 years ago LeandroLuk 4,989 -
0
votes1
answer321
viewsReact-Native-camera error classpath
I am giving this problem when I install a Dep, linking it manually or not, always from this classpath error. My code is on github if anyone wants to look. My github:…
-
0
votes0
answers550
viewsRun a function and if it takes longer than x seconds of error - React Native
Good afternoon! I made a function that searches the data of a JSON on the Web, but I wanted to involve it in a function that took longer that for example 10 seconds exploded an error on the screen,…
-
0
votes1
answer1081
viewsHow to wait for a method to end in JS?
Hello, I can’t get JS to wait for the method to finish the execution before showing the return, someone can help me? Method: getValor(jogador) { const id_grupo = this.props.grupoSelected.id; if…
-
0
votes1
answer867
viewsError trying to start android studio emulator
I’m starting to study React Enable, but whenever I try to start the emulator an error. C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native\exercicios>emulat or -list-avds…
-
0
votes1
answer2051
viewsDifference and good practices, either global or React Native context
I’m new to React Native and would like to understand in an objective way: What’s the difference between using global.variavel = foo; or create a context api? 'React recently implemented Context Api…
-
0
votes1
answer104
viewsLogin React Native + Firebase error using "Switchnavigator"
Error (Undefined is not a Function (near '...(0, _reactNavigation.Switchnavigator)...')) when compiling application. I need that when logging in is directed to the screen "Main". import React from…
-
0
votes2
answers2621
viewsRedirect to "Home" screen after login validation - React Native + Firebase
I need to implement in the code below the command so that the user is validated is redirected to the screen "Home". The changes I’ve made haven’t solved my problem. I can create the user, save in…
javascript react react-native react-router react-navigationasked 5 years, 11 months ago Philipe Said 138 -
0
votes1
answer778
viewshow to create an React Native app in windows and test on Iphone
Guys, I’m programming an RN app in windows and I don’t have Macbook but I have an iphone and I would like to test the app on the device, how could I proceed? I saw some comments of having access to…
-
0
votes1
answer377
viewsHow to catch login error? React Nactivate
How to display a friendly message to the user when the login did not work, I tried several ways but could not. Only works if the email and password is correct. const response = await…
react-nativeasked 5 years, 2 months ago Stewart Cintra 19 -
0
votes2
answers790
viewsError in the React-Native run-android command
Good evening guys, I’m trying to create an app with React-Native, already configured the Android SDK, Node and React-Native-cli. But when I run a React-Native run-android, with an open emulator and…
react-nativeasked 5 years, 2 months ago Luan de Gregori 1 -
0
votes1
answer87
viewshow do I arrow the data on another screen from the return of the post
How do I arrow the data on another screen from the return of the POST import React from 'react' import { Text , View , TextInput, KeyboardAvoidingView, TouchableOpacity, AsyncStorage, } from…
react-nativeasked 5 years, 11 months ago weverton nunes da silva nunes 1 -
0
votes1
answer512
viewsRoutes with undefined parameters
I have a Flatlist where each card directs me to a new screen: render() { return ( <TouchableWithoutFeedback onPress={ () => this.props.navigation.navigate('Post', { "title":…
-
0
votes1
answer1390
viewsVariable value change in React-Native
I am new to React-Native so I believe this is a very basic question. As I step the value of a variable for my JSX template? I want when I call the Somag1 function it assigns a value to Contg1 and…
react-nativeasked 5 years, 2 months ago Fabricio Carneiro 25