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
answer61
viewsError registering user in database with Nodejs + React Native
I’m not getting past the values I put in TextInput for the data set. When I click the button for the object to be sent to DB, the object sent will be empty, this is the answer of console.log: Object…
-
0
votes1
answer352
viewsError 4294963238 - React-Native-Gesture-Handler with EXPO
I’m using the Expo together with React, and when I try to install the react-native-gesture-handler with the expo install command react-native-gesture-handler I have the following error: npm ERR!…
-
0
votes2
answers2984
viewsHow do View move when displaying keyboard (IOS and Android) in React-Native?
I’m developing a messaging app in React-Native. When clicking on the text input, and the IOS keyboard is displayed, it hides the text input view, which is displayed at the bottom of the screen. How…
-
0
votes1
answer663
viewsHow to receive data in an React Native component?
Hey, there, you guys! I am studying React Activate and I came across a problem that I could not solve, I tried in every way and searched in several places :( I have a list of employees and each…
-
0
votes2
answers94
viewsChange State of Component called more than once
I have this code that is a simple counter of Truco. I made a component to count and called him to both teams. When it reaches above 11 points the Zera component was straight. But how am I calling…
-
0
votes1
answer505
viewsChange component properties on different pages
I have a button component: Filing cabinet index.js: import React from 'react'; import {ActivityIndicator} from 'react-native'; import {Container, Text} from './styles'; import PropTypes from…
-
0
votes0
answers199
viewsCleaning function in useEffect is not working
Hello! I am trying to cancel my api call using Axios when the component is unmounted, and although it seems to be being canceled, I still get the error: Can’t perform a React state update on an…
-
0
votes1
answer1193
viewsActive React application does not connect to Node.js server on my laptop
I’m developing an app in React Native, using the expo. I have a Node.js API running on my Macbook. Both my phone and laptop are under the same Wifi network. In the app, I have an API call pointing…
-
0
votes1
answer678
viewsAdd Items to a Flatlist
I’ve been trying to add Items to a Flatlist in React Native, so I used the following code: export default function App(){ var list = [ {text: 'Hello', key: 1}, {text: 'Bye', key: 2} ] return(…
-
0
votes1
answer97
viewsText does not appear using React Hooks with Redux
I’m trying to get a string saved in my store state and put it in a text component, but the text is not showing up. To call the string, I’m doing it this way: import {useSelector} from 'react-redux'…
-
0
votes2
answers1538
viewsUpdate useEffect from the navigation.goBack page?
I’m developing a App in ReactNative using Expo, but I can’t update the useEffect(() => {}, []) of the previous route from navigation.goBack(). Example: Here time the Index page. function Index(){…
react-native react-navigation react-router react-hooks expoasked 4 years, 7 months ago Jéfferson Maurício 73 -
0
votes2
answers441
viewsHow to delete in Realm in Javascript
I am trying to delete an item from a list using Realm, but all the methods I have tried so far have been failed. The last one I tried for a few tips, it should work, but still no success. View the…
-
0
votes1
answer186
viewsMonorepo with Yarn for React Native projects, Bundle error
I want to create a monorepo with Yarn to work with React-Native, this is necessary because I want to keep backend frontend and app in the same repository. My problem occurs when loading the app to…
-
0
votes1
answer219
viewsReact Native - Appregistry.registerComponent with Provider
I would like to know why when I use the Preview like this //Root.js import React from 'react'; import { combineReducers, createStore, applyMiddleware } from "redux" import { listaDesejosList,…
-
0
votes1
answer246
viewsTypescript - Representing the rest of a component’s parameters in an Interface
I have a component of Input using the TextInput of React Native. This component must accept the property append, and any other property passed to it shall be assigned to the TextInput: interface…
-
0
votes1
answer227
viewsFlatlist does not render data when launching the Application - Firebase integration
Good afternoon guys, I was studying the React Native Firebase library in order to learn how to work with a Firebase integration with React Native. However, I am facing some problems, the goal is to…
-
0
votes1
answer45
viewsReact Navigation | How to use Navigation inside an React component?
I have an app with a main screen where everything should happen. I am using the lib React-calendars to render the calendar and below there is the content of the application, which would be divided…
-
0
votes1
answer211
viewsManipulate two different values in the same input text React Native expo
Good evening, I am developing a calculator to study component manipulation in React Active, using expo, however I have a logic problem, when I type the first value1, and then select one of the types…
-
0
votes1
answer80
viewsexpo init/npm init creating many files
Good afternoon, you guys. I’m having a little trouble executing the expo init app. The command works, creates the React-Active files on my Windows correctly, but from a time to time it has failed to…
-
0
votes1
answer88
viewsExpo - Invalid hook call inside function components
I was learning Expo, and I needed to create a dynamic list of counters. On my screen I have a button + that adds other squares, and each of these squares has a counter inside them, from what I…
-
0
votes0
answers41
viewsI’m a beginner in React-Native, I was wondering how can I add a Toptabnavigator within my code
I’ve seen several videos , but could not make an adaptation to my code import {StyleSheet,ScrollView, SafeAreaView } from 'react-native'; import {createDrawerNavigator , DrawerItems} from…
react-nativeasked 4 years, 6 months ago cbs 29 -
0
votes1
answer811
viewsHow to provide more data correctly to a Flatlist?
I’m building an app on React Native using the services of Firebase and Redux. Every day, I register new Documents there and so my database gets bigger. In my app I was giving a rescue all records of…
-
0
votes0
answers575
viewsReact Native Textinput mask using Regex
I’m trying to make a Textinput mask using regex, and it’s kind of like this: But as is remarkable, first the number appears on the screen and then the state is updated and the screen changes again.…
react-nativeasked 4 years, 5 months ago Gabriel Amorim 111 -
0
votes2
answers444
viewsHow to authenticate user using your Google account in an app built with Expo (React Native)?
I’m developing an app with PHP in the backend and React Turn on the mobile frontend. The app already has a web frontend written with jquery, and the authentication is done using Google Oauth. In the…
-
0
votes1
answer49
viewsPause animation with setTimeOut
I am using the Lottie library in React Activate and want to animate an object and after 2.5 seconds pause the animation, but settTimeOut returns me an error. The command anim.pause() works properly…
-
0
votes1
answer818
viewsReact Navigation with Typescript
I created a project with React-Native and Typescritpt, imported the components from React-Navigation, and when using the property screenOptions inside Navigation it shows the following error. No…
-
0
votes1
answer96
viewsMake sure the Component is starting with the uppercase - React Native
I’m trying to load Google Maps into a project with React Native and TypeScript but it is returning me the error that the Component shall be started with a capital letter: Error: Invariant Violation:…
-
0
votes1
answer511
viewsManipulating buttons in React.js
I am creating a small task system for a collaborator in the company where I work, it should display the tasks that must be completed on the day, until then I was able to display the tasks my problem…
-
0
votes1
answer533
viewsReact Native - text input does not lose focus
I put a <TextInput/> to do the search action on my project, but after I click on this <TextInput/>, focus no longer leaves it, no matter where click on the screen, the function onBlur()…
-
0
votes1
answer240
viewsAdd attribute to a json
How do I add an extra attribute to all elements of a JSON that I receive, to then display on the screen? When I try to make one map in the JSON that I receive from the request and add the item in…
-
0
votes1
answer209
viewsReturn of onPress within Components
Good night. I’m having a little problem with the return of an Onpress from a Touchableopacity, inside an element. Basically, sometimes it returns the action, but most of the time it does not. The…
-
0
votes1
answer1136
viewsPush notifications with Expo and React Native
I’m developing an app that needs to notify the user, I’m using Expo and React Native to develop Following the Expo Documentation I can correctly notify with: import * as Notifications from…
-
0
votes1
answer203
viewsProblem when trying to call a function inside onPress - React Native
Hello, When trying to call a function that has a hook call the following error appears: And here’s the excerpt from the code: currentLocation.js import React, {useState} from 'react' export function…
-
0
votes0
answers57
viewsTreat Checkbox with error or success message
I treated it differently. Following a tutorial, I separated the checkbox with a function and where it renders only the status. It was like this: this.setState({ checked: !this.state.checked })…
-
0
votes1
answer180
viewsBrowse map array with tsx
I need to traverse an array within another array with array map, in the first loop I will show the categories and in the second I will show the products, I am able to go through, but I cannot show…
-
0
votes4
answers1039
viewsGoogle fonts in React Native
I am trying for some time to add fonts to my React-Native project but did not succeed following tutorials from the net. I’m trying to use the sources like this: import React from 'react'; import {…
-
0
votes0
answers69
viewsNavigation error with React Native
I’m developing an application in React Native with three types of browsing: Drawer, Bottom Tab and Stack Navigator. I entered these three types of navigation but shows the following error: He says I…
-
0
votes1
answer158
viewsProblem importing function in React Native
Hi, I’m making a React app on using expo and am having the following error; I’ve tried everything, as far as I understand he’s not recognizing the function LoginScreen in; <Stack.Screen…
-
0
votes2
answers539
viewsHow to Disable React Native Back Button
Hello, I would like to know how I disable the return button of the createMaterialTopTabNavigator, from React-Native, in version 5. I managed to Disable the native button this way: import React,…
-
0
votes1
answer173
viewsuseEffect does not recognize new value
The useEffect hook fires when some variable in your array refreshes. However, when the value of the variable remains the same, the hook simply ignores. This hook gets a value and a push on the array…
-
0
votes0
answers115
viewsmalformed calls from js field Sizes are Different
I’m trying to send an array of images to the Back-End but React Native shows this error: Malformed calls from JS: field sizes are different I don’t know this mistake and I can’t find a solution.…
-
0
votes3
answers83
viewsReading Asyncstorage generates an infinite loop
I have a problem with my applications. I use a lot of useState(), but I have been observing that this is generating endless loops in my application. Follow an example: if(show){…
-
0
votes1
answer352
viewsReact Navigation passing parameters to Brother Stack route
Hello, I have the following structure: Workouts index.jsx Workoutinfo index.jsx Home index.jsx Profile index.jsx Notifications index.jsx It’s a regular Home page and a Workouts page that shows all…
-
0
votes0
answers23
viewsForm field does not focus on not stating data or contain invalid information. React-Hooks-Forms w/ Imask
I have a form for entering data such as credit card, as can be seen below: React.useEffect(() => { register({ name: 'cardNumber' }, { required: true, validate: isValidCardNumber }) register({…
-
0
votes1
answer389
viewsHow to make a Dynamic Checkbox with React Hook?
Guys, how can I make this dynamic checkbox? Because this way it is there I have to create a useState for each checkbox, but when I go to pull these values from the bank will come diametrically, how…
-
0
votes0
answers225
viewsError while running project React-Native run-Ios
I have a project in Act-Native 0.62 The project is already in its final phase, including the android part is already working well, ready for release. Recently I got a Mac late 2009 borrowed, I…
-
0
votes2
answers410
viewsAPI request error on localhost: "Possible Unhandled Promise Rejection"
I am having a problem at the moment of requesting my local API with React Native. Request through Postman works correctly, by React Native error occurs: Possible Unhandled Promise Rejection My…
-
0
votes0
answers31
viewsReturn "Authentication" property useAuthRequest() is coming "null" | expo-auth-Session
I have a problem with returning the accessToken and the idToken after authentication with lib expo-auth-Session, implemented for connection with the Identity Server. It opens the login page and…
-
0
votes2
answers429
viewsPassing parameter navigation from stack navigation to child component
I’m new to React On and I’m building an app where I need to rethink the same code several times with only a few differences, so I’m creating components for this, but in one of the components there…
-
0
votes1
answer44
viewsFirebase: updatePassword() does not work
I’m trying to perform a password reset system on my React Native project with Firebase but it doesn’t work at all. The state of the email is displayed as normal in Alert, but the password returns…