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
-
-1
votes1
answer310
viewsPass parameter from one Page to another React Native
I have a login page and another with a webview, I am not able to pass a parameter of the login page to another page with the webview. App.js import React from "react"; import Routes from "./Routes";…
-
-1
votes1
answer30
viewscurrentUser firebase is returning null
I’m doing a project that consists of creating two applications, I’m using firebase as a database and both are using the same database, the first application is working normally, but the second is…
-
-1
votes1
answer202
viewsHow to modify Textinput values with Formik?
My situation is as follows: the user informs a zip code and the application queries an API, returning the data I will set in the other fields as city, state etc.. For that I need to change the…
react-nativeasked 3 years, 12 months ago Max Naegele 9 -
-1
votes1
answer292
viewsUnform does not return the validation error
Staff I am developing an app and using the unform of Rocketseat for form validation. But when trying to create a validation error by displaying the component border in red if it is empty, the error…
-
-1
votes1
answer39
viewsReact-Native with 3D Animation | sensor accelerometer
all right? I’m starting a very unusual React-Native project involving React-Native and 3D sensors. I have an accelerometer, motion sensor, which is attached to strategic points of the human body.…
-
-1
votes1
answer104
viewsImage does not appear React-Active
I’m starting in React-On, so I was making an App watching a video, and when I went to put an image it didn’t appear, I put it inside a folder, and when I put the image path doesn’t appear anything.…
-
-1
votes1
answer45
viewsReact Native error "Cannot read Property 'navigate' of Undefined onPress
I’m having a problem in the code I’m trying to access a screen by pressing a button, so far so good but the problem is I’m trying to pass a props to the onPress, but this mistake is happening:…
-
-1
votes1
answer16
viewsUsestate changes to Undefined at the time of saving the photo
I need to save the path of the photo taken through the camera.takePictureAsync. I created the variable through the Hook concept as defined below: const [path,setPath] = useState(''); When the…
react-native react-native-camera react-native-community camerarollasked 3 years, 7 months ago Gabriel Santana 372 -
-1
votes1
answer58
viewsHow to Insert Multiple Items using React-Native-sqlite-Storage
I was developing an application using the React-Native-sqlite-Storage but I came across a very strange problem, time my code works and time does not, I can not understand, to try to investigate I…
-
-1
votes1
answer33
viewsCalling a function after entering a page
Good afternoon, I am working on a React Active application and I am having problems when I need to reload a value when it is already set, the function listingCurso can receive the course, but when I…
-
-1
votes0
answers8
viewsReact Native Maps update with onDragEnd
I started studying React Native and making a small test app with React-Native-maps~0.28 and React-Native-maps-Directions~1.8.0 but I’m having trouble upgrading Déstination to the new position with…
-
-1
votes0
answers20
viewsPossible Unhandled Promise Rejection (id: 0): Syntaxerror: JSON Parse error: Unrecognized token '<'
I’m developing an app and I need to log in. I have an API on two different servers. a return me: Possible Unhandled Promise Rejection (id: 0): SyntaxError: JSON Parse error: Unrecognized token…
-
-1
votes1
answer17
viewsReceive the value of an input variable and compare to a preset to generate an Alert and redirect
Good morning, I’m new to React Native and I’m trying to compare the value of a variable I received through a Textinput with an already preset to generate an Alert and redirect me to another screen,…
-
-1
votes0
answers18
viewsI can’t make a sum
Hello, I am developing an application that makes a calculation of electricity consumption in React Native. In it, I have 2 pickers: one of hours and the other of minutes. And to make it easier on…
-
-1
votes0
answers17
viewsHow to take a useState from one screen and use it on another screen in React Native?
Guys, I’m making an app for college in React Native and I used a useState to get the name of the user on the screen of Signin, but I don’t know how I can take this name and use in other screens in…
-
-1
votes0
answers13
viewsHow to turn a gallery image into BASE64
I have a function that takes the image from the gallery and the camera and sends it to an area where the user can view it. import React, {useState} from 'react'; import {View, TouchableOpacity,…
-
-1
votes1
answer8
viewsWhite flash after splash screen in React Native 0.65.1
My question: I have a project created in React Native 0.64.2, in this version the splash screen worked normally, but when I created another project using the same code in React Native version…
react-nativeasked 3 years, 2 months ago Hérick Raposo 31 -
-2
votes1
answer94
viewsReact and React Native communicate easily?
I need to make a web application, but it needs to run on platforms Android as IOS. Although I know the difference between Frameworks, I wonder if I can make a code using the React normal, but…
-
-2
votes2
answers68
viewsError with navigation buttons
I am trying to make that by clicking a 'confirm' button, it goes to another screen (login) but I come across the following error: Undefined is not an Object (evaluating…
-
-2
votes1
answer75
viewsPassing state of a class to a Modal in React Native
I am starting in React Native and I have a problem, I will put the prints to make it easier. I have a screen called Questions, which has an initial state, and this screen opens a modal called…
-
-2
votes2
answers335
viewsValidate fields in React
I have some input fields, both are set to states. I would like to make sure that you only allow clicking on the button if these fields are filled in. Obs:. I am Using Hooks const [ name, setName ] =…
-
-2
votes0
answers19
viewsHow do I leave a 1:1 image in React Native?
I have an image that I would like its width to be 100% the width of the screen and the height to be the same size as with (that is to say 100% the width of the screen), someone could help me with…
-
-2
votes1
answer436
viewsI can’t start development on React-Native in any way
Personal I am with a problem will be that you could help me because for the same I have not found the solution. I am not able to run any application in React-Native because it always gives the same…
react-nativeasked 5 years, 3 months ago Adiel Andrade 1 -
-2
votes1
answer167
viewsProblem with environment variables for a non-existent application
I’m trying to simulate a new application done in Act-Turn on IOS, but after the emulator presents my app, 3 seconds later opens another address that has nothing to do with the directory of my app: I…
-
-2
votes1
answer789
viewsReact-Native project does not work on mobile and nor on emulator command React-Native run-android while running appears this error below
Errors in the low range: : meuApp smartMoney>React-Native run-android info Running jetifier to migrate Libraries to Androidx. You can disable it using "-no-jetifier" flag. Jetifier found 967…
react-nativeasked 4 years, 7 months ago DanteNero07 1 -
-2
votes1
answer1522
viewshow to style an icon inside input in React-Native
import React from 'react'; import { View, Image } from 'react-native'; //import { useNavigation }from '@react-navigation/native' import { Octicons, Fontisto } from '@expo/vector-icons' import…
-
-2
votes1
answer388
viewsI need help to configure Axios client according to Wi-FI/3G/4G network
I’m developing an app in React-Native using expo, and the app works well on the Wi-Fi from here, but it should also work outside of here, and we have a firewall port that points to API nodejs by our…
-
-2
votes2
answers559
viewserror running npx React-Native run-android command
Create a new project in React Activate with tamplete in typescript and while running the android Yarn command or even the npx React-Native run-android I am getting the following error: error Failed…
-
-2
votes2
answers107
viewsError in searching collection points
Last week I followed Next Level Week, which brought the idea of creating a system for Mobile and Web, the web part I was able to do, all according to the video. but I have a problem so far in the…
-
-2
votes1
answer400
viewsInstallation error/project start with React-Native
I’m trying to start a React-Native project 2 days ago on my PC to run on my Android physical device. When running the project with npx react-native run-android appear the following logs: info…
-
-2
votes1
answer356
viewsError Trying to Run React Native project on Android physical device
I am trying to start a React-Native project 3 days ago on my PC to run on my Android physical device. While running the project with npx react-native run-android appear the following logs: info…
-
-2
votes1
answer238
viewsReact Native Flatlist is not rendering results
I’m trying to show a box with a result of an Axios request using Flatlist but the screen is just blank, no error or anything. export default class Home extends Component { state = { posts: [], };…
-
-2
votes1
answer183
viewsProblems to render on screen in React Native
I’m having trouble putting on the screen a simple "main page" what’s wrong with the code? (no error appears in the console) main.js file import React, { Component } from 'react' import { View, Text…
-
-2
votes1
answer251
viewsPass parameter to Tab.Screen component
How to pass parameters to the Tab Screen component? Fiche/index.js: import Historico from './Historico'; export default function Ficha({ route, navigation }) { const { periodo } = route.params; //…
-
-2
votes1
answer123
viewsFlatlist is not rendering - React Native
I’m making a screen here and I want to display a list of medical specialties, only I don’t want to have to do this manually, so I implemented Flatlist only though I’m getting the information,…
react-nativeasked 4 years, 2 months ago Sarah Gonçalves 1 -
-2
votes2
answers92
viewsdisplay React-Native modal array
Hello, I am developing an app for the internship and the supervisor asked that in the search field, the user has the option to choose which field to search for. I thought of making a modal with the…
-
-2
votes1
answer141
viewsCalling Api in useEffect doesn’t work?
I’m having a little problem here on the call for an API, code: const [fullCurrency,setFullCurrency] = useState(''); function carregaMoedas(){ const res =…
react-nativeasked 4 years ago Joao Marcos 183 -
-2
votes1
answer22
viewsStrange behavior
I have a class component where I run a callback (filterTasks) right after a status change (toggleFilter), all normal and trouble-free. export default class TaskList extends Component { state = {…
-
-2
votes2
answers24
viewsDifferent behavior using useState and useContext/useReducer
I have a case that should be very common for you. I make a query of a sales list in a Rest API and at that time I set the status isLoading to true, so that a Spinner component I have is visible and…
-
-2
votes1
answer86
viewsUpload React-Native image with Xios and Multer, backend with nodejs
I need to upload an image pro backend and save it, but the api function does nothing Function calling the Axios const teste = () =>{ console.log(picture) Axios.post(apiPath+'/api/addPostagem',…
-
-2
votes0
answers20
viewsGeolocation with API .... how to save two points?
Can you help? In the field audit module, by clicking CHECKIN, save the latitude and longitude of the device. The API already exists and the table already contains the columns from latitude to…
-
-2
votes0
answers23
viewsHow to put the icon to see the password inside Inputoutline
I wonder how I can put this icon inside my Password Inputoutline: Here is the code of Inputoutline: [..] return ( <SafeAreaView style={styles.formContext}> <View style={styles.txtEmail}>…
-
-3
votes1
answer195
viewsQuestion React-Native
I wonder if an app that updates, for example, a small list of information automatically, when they undergo changes in the database (these changes not made in the app come elsewhere ) without…
react-nativeasked 6 years, 2 months ago Tiago 5 -
-3
votes1
answer145
viewsCountdown does not stop at Zero
Countdown timer doesn’t stop when it reaches "0". I need the timer to stop when it reaches "0" and when clicking on the "start" button it starts with the set value, which is "1 min" and decreases to…
-
-3
votes1
answer22
viewserror while running npx React-Native run-android command
When I execute npx react-native run-android, which is to start the Android emulator, returns me the following error: Command run-android unrecognized. Make sure that you have run npm install and…
-
-3
votes1
answer46
viewsHow do I return the date?
renderItem = ({item}) => { return( <TouchableWithoutFeedback onPress={()=> this.setState({isItemVisible: true, modalData: {...item}})}> <View style={{ flexDirection: 'row', flex: 1,…
-
-3
votes1
answer41
viewsLOGIN ROUTE ERROR
Hello, I am a student of programming, and during a project I came across a mistake that I cannot solve. I am basically in the creation part of "login" route, whose purpose is to search in the…
-
-3
votes2
answers135
viewsProblem with a list of selectable items that are stored in an array
Hello, I need to create a list where I can select one of the items and also deselect, but I’m having problems because the list only selects correctly if I select in ascending order and desiccate in…
-
-3
votes2
answers84
viewsStrange return even with Async/Await
I have the following functions in common.js import AsyncStorage from '@react-native-async-storage/async-storage' const getData = async () => { try { const jsonValue = await…
-
-5
votes1
answer273
viewsReact Native not working
Eae you guys, blz? I want to start making application with React Native, I’ve installed the programs necessary to be able to start it, but when I put the command in cmd "npx React-Native…