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
answer106
viewsHow to Add an IF (Condition) to onEndReached in React-Native?
I have a flatList which loads 20 records at a time, when it arrives at the end of the list, the component onEndReached calls my method that carries over 20, and so loads up to bring everyone,…
react-nativeasked 5 years, 5 months ago Luan Martins Gepfrie 197 -
0
votes1
answer197
viewsWhat problem is occurring in Axios with this HTTP call?
I’m trying to make a call HTTP, but as a beginner I’m not able to find the error.. I already tested it on the emulator and the error which is displayed as follows: 0, _loginService.autenticacao) is…
-
0
votes1
answer315
viewsHow to generate ANDROID app build on IONIC
I typed the command ionic cordova build android and the result was that at the prompt Installing "ionic-plugin-keyboard" for android Ionic-v1.cmd build Ionic-v1[3676]: c: Ws src…
-
0
votes1
answer38
viewsGlobal styles with Styled-Components
How can I increment global styles in Styled-Components? I have a file with several style variables, as I can increment in Styled-Components? Example: src/Styles/Colors.js const ColorPrimary = "#000"…
-
0
votes2
answers461
viewsHow to wait two promises before returning to function?
I am making a code that makes two requests, the value returned is the size of a file content-length, but I need the function that contains these two requests to return the value after the requests…
-
0
votes1
answer175
viewsUri in image is not appearing
Ola, So I’m doing a project, and I need the user image to appear right away when it’s loaded. For this I’m using firebase Storage, and I can get the URL of the image I need, which in this case is :…
-
0
votes1
answer1765
viewsHow to change the state of the parent component by the child component?
I have a modal (child) component that I want to display information by clicking on the parent component object. Son: import React, {Component} from 'react'; import {Modal, Text, View, Button} from…
-
0
votes1
answer565
viewsError using React-Native-camera
Hello, I need to put the app to read the Qrcode and in the tutorial I’m finding speaks to use the React-Native-camera. I’m just not getting the camera to work. I already made the configuration that…
-
0
votes1
answer23
viewsProgramming navigation React Navigation
Is there any way to do programmatic navigation using lib @React-navigation in React Native? I am validating outside the React files . JSX and wanted to "push" a route if any conditions are met…
-
0
votes2
answers21
viewsBackhandler does not work
In my app React-Native PWA the back button of Android is closing the application. I tried to use this Backhandler function inside any screen to make it come back instead of closing the app but it…
-
0
votes0
answers15
viewsXcode Archive is successfully generated, but does not appear in the list for me to go up to App Store Connect
You guys, good morning! I’m trying to upload an app update to the App Store, but I’m having a problem with the Xcode Archive. It’s succeeded, but it doesn’t show up in Organizer for me to upload to…
-
0
votes1
answer126
viewsReact-Activate Invariant Violation:_default(...)
I’m a beginner in React-On, and for the first project I decided to redo an old class job. However this error is occurring, I was just making a screen of Oggin and trying to register there in App.js…
-
0
votes2
answers38
viewsHow to make continuous increment with React Native Touchable?
Is there any property in the TouchableOpacity React Native which, when I pressed the increment button and held the touch, continued incrementing the values? For example, I have this button:…
-
0
votes1
answer256
viewsLoading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper
I am developing an app in React On. However when generating buildo I get message: Loading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper…
-
0
votes1
answer48
viewsImport this into map/index.js
I need to import that Istance which is in map/index.js and display it in Details/index.js Map/index.js import React, { Component, Fragment } from 'react'; import { View, Image } from "react-native";…
-
0
votes2
answers40
viewsWhy does this component created with function not work?
Component creating with function, returns error import { React } from "react"; import { Text } from "react-native"; const Product = () => <Text>Product</Text>; export default Product;…
-
0
votes1
answer203
viewsevaluating 'this.props = props' React Native
I am learning React Activate and I am having a hard time. I am following this tutorial: https://blog.logrocket.com/navigating-react-native-apps-using-react-navigation/ I perform all the same…
-
0
votes2
answers790
viewsI can’t redirect to another screen
I have an application in React Native with the initial route pointing to the Authloadingscreen screen that checks if the user is logged in and redirects to Login or Home, as the user is not logged…
-
0
votes1
answer982
viewsError launching application with React-Native run-android
I’m trying to start with React-On I did the installation as this link https://docs.rocketseat.dev/ambiente-react-native/android/linux but when I turn the remote react-native run-android with the…
-
0
votes0
answers524
viewsCommand failed: gradlew.bat app:installDebug -Preactnativedevserverport=8081
Good morning, I’m trying to do the deploy of the application in the nutcase, but you’re making this mistake, I’ve tried change the door, but it didn’t work, someone can help me? Failed to install…
-
0
votes1
answer47
viewsI cannot add the React-navigation library to my React-Native project!
I’m trying to use Yarn add React-navigation in my project, but I can’t add the library keeps popping up this error. I have already deleted package.lock.js, however error still appears. info…
-
0
votes2
answers1387
viewsError running React project Enable "A problem occurred Configuring project ':app'" on Linux Manjaro
I was installing the React Native following the facebook steps, and then when I went to test with the command React-Native run-android happened this error. I’ve set up the android SDK in android…
-
0
votes1
answer489
viewsReact Native build does not update settings
I recently built a project with the name "project1" following the steps of documentation and since this project all my other projects are having the same name of this project, I change the build…
react-nativeasked 5 years, 3 months ago Emanoel Vieira 38 -
0
votes1
answer692
viewsReact-Native changing icon color alone
I’m implementing one of those "little eye" buttons that allows the user to view his password to check if it’s right, the button is already working as expected, the problem is that the button icon…
react-nativeasked 5 years, 3 months ago Filipe Gonçalves 236 -
0
votes1
answer137
viewsI can’t load the image on the carousel
I have a home screen with a carousel, where each item has a title and an image, however the image does not render at all, only the title. I’m not able to identify why this is happening, since the…
react-nativeasked 5 years, 3 months ago Juliana Marques 337 -
0
votes1
answer627
viewsCan’t find variable: Styled Styledcomponents React Native
Following this tutorial Was installed through Yarn the Styled-Components: yarn add axios prop-types react-navigation styled-components So in my Styles.js file I defined a class: const Container =…
-
0
votes1
answer246
viewsHow to style an imported component using Styled Components
I’m using this component to use a mask input in my application, but I would like it to have the same style as my Input in my Styled-Components: const Input = styled.TextInput` paddingHorizontal:…
-
0
votes0
answers276
viewsHow to call a function 'this' when my function does not recognize?
In the question was difficult to explain, but my problem is the sequinte, I added in my component the keyboard component. However in the function _keyboardDidHide I am calling another function that…
-
0
votes0
answers337
viewsFlatlist overlaying items when rendering more than 10 items
I’m having trouble implementing a FlatList in my application, whenever it renders more than 10 items they overlap as if they were with position: absolute; top: 0; and no matter the size of the…
-
0
votes1
answer200
viewsI want to put a different style on my first React-Native Flatlist item
class Card extends Component { render() { return ( <TouchableWithoutFeedback onPress={() => this.props.navigation.navigate('Post', { "title": this.props.item.title, "body":…
react-nativeasked 5 years, 2 months ago Ruan Duarte 146 -
0
votes1
answer31
viewsWant to open two separate menus in my app?
I have a tab that opens my drawer: <Tab NavMenu={() => this.props.navigation.openDrawer()} NavProfile={() => this.toggleOpenProfile()} /> In my navigation it’s like this const AppDrawer…
-
0
votes0
answers44
viewsCache error in React-Native for IOS version
I am working on an application inside a new directory, but the emulator insists on calling another application from a folder that has already been deleted. Where is the problem? I’m using the…
-
0
votes1
answer46
viewsClass declaration error in React-Native
I am creating a React application with the following flow: Man App.js imports the Components header, body and footer. The body.js imports an event class called Play. However, in the declaration var…
-
0
votes1
answer13
viewsReact Native init generates the app.js without render()
app.js is so: import React, {Fragment} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, } from 'react-native'; import { Header, LearnMoreLinks, Colors,…
react-nativeasked 5 years, 2 months ago Jonas Bezerra 1 -
0
votes2
answers285
viewsHow to use 'filter' in a flatlist (json API)
The api has the date as follows: "period": "2019-10-19T00:00:00.000-03:00", Pull my flatList like this: componentDidMount() { console.log(this.props.navigation) this.loadData(); } async loadData() {…
-
0
votes1
answer195
viewsSort method of my flatList
<FlatList style={{backgroundColor: 'white', marginTop: 10}} data={this.state.progr.data.sort((a, b) => a.start_time > b.start_time).filter(x => x.period ===…
-
0
votes0
answers27
viewsHow to show the "days" that return in the request?
I’m programming in JS for React-Native and I’m having trouble showing off in FLATLIST of the days of the week (will be names of users later) coming in the Array. class alunoAgenda extends Component…
-
0
votes1
answer162
viewsHow to log in with firebase and consume data from a local Rest api made with Node?
I have a React-Native application that consumes the data of an api made with Node and Mongo. And a simple application, is a CRUD of a "user" entity. However I have route protection using JWT in the…
-
0
votes1
answer1875
viewsReact Navigation Error: Undefined is not an Object (Evaluating '_this.props.navigation')
I’m facing the following mistake: Router.js import {createAppContainer, createStackNavigator} from 'react-navigation' import Main from './telas/Main' import Voluntario from './telas/Voluntario'…
-
0
votes1
answer273
viewsProblem picking up user information with React-Native-fbsdk
I have a mobile app made in React On, I am logging in via facebook using lib React-Native-fbsdk but it works but I am having problems in redeeming user data, I had to see some topics here on the…
-
0
votes1
answer85
viewsHow do I change the title name via i18next in the Active Act browsers?
I’m having a problem changing the name of tabBarLabel of createMaterialBottomTabNavigator by means of the i18next, because the routes are neither functions nor component, so I did it by this mode,…
-
0
votes2
answers316
viewsHow to access the React upload Enable in the Laravel API?
I have an app in React on, I have an option that the user can change his avatar, I am using the library ImagePicker and I have the API in Laravel. I’m having trouble accessing the chosen image in…
-
0
votes2
answers131
viewsReact Native Reanimated
When installing the React-Native-reanimated and launching the application this error is generated: Looking for some on the internet I found this topic Link Following the information would only be…
-
0
votes1
answer485
views400 Bad Resquest Error in React Native with Axios
I made this code based on a React project. Using Axios and React Native, I am trying to return the data from the array, but it is only returning in the log an error 400 in the request of the api.…
-
0
votes1
answer21
viewsMaterialbottomtabs - Outside the screen boundary
Hello, I’m developing an app with Expo and I’m using React Navigation to do the navigations and Materialbottomtabs on the main screen. How much test the app in Android Expo Client works perfectly,…
android react-native apk react-navigation expoasked 4 years, 12 months ago Mendes Desenvolvimento 11 -
0
votes1
answer258
viewsPass props via Bottom Tab Navigator
I’m developing an application with React Native and I’m having a problem, would someone tell me how to pass data from a screen to a Bottom Tab Navigator? I have a screen called Mainperson with a…
-
0
votes1
answer203
viewsSide Menu is not displayed in the app made in React-Native
I’m developing an APP in React-On, I need to display a menu-left side. Although it does not display any error message, the side menu does not appear. I am using React-navigation-Drawer to create the…
android react react-native react-navigation react-routerasked 4 years, 11 months ago alexjosesilva 3,119 -
0
votes0
answers126
viewsProblem when trying to run a project using React-Native
I am doing a tutorial of React-Native but while trying to run the project using the command: npx react-native run-android I get the following error messages: error Failed to install the app. Make…
-
0
votes1
answer54
viewsFirebase stopping the iteration of foreach
Goal: I’m trying to make an array of objects containing 3 information: id, title and imageUri. But when taking the value of imageUri firebase(a download URL), the foreach hangs. Error:[Unhandled…
-
0
votes2
answers497
viewsCheck Box is not unchecking when clicked again - React Native
I have a code with 3 Checkbox and when pressed it does not uncheck... Another remark, as I would for when the "UE/HQB" is selected and the others stay disabled={true} or by first selecting any of…