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
answer625
viewsHow to install java 8 on Ubuntu 19.04?
First of all, I know it seems a rather silly question, but I am a Windows "user", I have the dual boot on my machine.I really admire Unix, and I intend to migrate to it for good. I was using Ubuntu…
-
-1
votes2
answers520
viewsFunction with React Native parameters
I got my construtor: constructor(props) { super(props); this.state = { categorias: [], refreshing: true } this.buscarSubcategorias = this.buscarSubcategorias.bind(this); } And the function:…
-
-1
votes1
answer335
viewsError running run-android on a React project
I am trying to run the command "React-Native run-android" in project that was passed to me and is not working. I have tried to change the file Gradle.properties to use Androidx but only gives…
-
-1
votes1
answer1105
viewsImage does not appear in Flatlist React Native
Hello, I’m trying to put together a list with some elements inside it but the image element does not appear but returns the right image size. I created an array with the data I want to show, then…
-
-1
votes1
answer118
viewsBug list of React users
I’m trying to list a list of users of the database, but it does not load when starting the application and not even if I update the emulator of android studio by pressing 'RR', already tested on my…
-
-1
votes2
answers249
viewserror starting React-Native run-android
I am trying to run a React-Native project by USB debugging on mobile phone and is giving error. I point out that I have already used 'adb Devices~ and appears the ID of my mobile phone in the…
react-nativeasked 5 years, 1 month ago Luan Perosa 11 -
-1
votes1
answer530
viewsError trying to run React-Native run-android
I am starting now at React and have created a React Native project for study. When trying to run with 'React-Native run-android' it trims the error below. Can anyone help me? I don’t know how to fix…
-
-1
votes1
answer662
viewsReact Native error in React-navigation-stack on Android
Hello, I’ve tried to solve this problem with various solutions and nothing, always give me the same mistake. I did all the procedures you tell me on his website for me to do, createStackNavigator,…
-
-1
votes1
answer511
viewsHow to take the parameter passed in the function and take the same function in React-Native?
Hello I want to pass a value for a function in a touchableOpacity and take this value, within the function, as I should proceed? Follows my codes: import React, { Component } from 'react'; import {…
react-nativeasked 4 years, 11 months ago GustavoSevero 2,567 -
-1
votes1
answer216
viewsSafeareaview does not work
For some reason safeAreaView does not work in my code: import React, { useEffect, useState } from 'react'; import { SafeAreaView, StyleSheet, View, Image, Text, TouchableHighlight } from…
react-nativeasked 4 years, 11 months ago Tomás 119 -
-1
votes2
answers168
viewsReact Native: Component does not find state data after setState
I’ve had this problem for weeks: I am using React Hooks to request an internal api using useEffect to make a request and then store the result within a setState. If I give a console.log the first…
-
-1
votes1
answer2163
viewsHow to access individual object values in array?
I’m trying to access some specific values of an object within an array, from a get method response using Xios. I’d like to access id, dateTime, sensorData etc of each array object separately, for…
-
-1
votes1
answer207
viewsRender images from a category in React-Native
I’m starting in React-On and I’m trying to make an application to divide images into categories, I wanted to click on an image and so it rendered on screen all images that belonged to that category…
-
-1
votes1
answer518
viewsReact-Native: Home icon does not appear after adding Stack Navigator
Hello! When I just add Tabnavigator, all icons appear on the tab, however, when I add stackNavigator in the Home.js file, only the first icon (Start) does not appear. I’ve searched some forums and…
-
-1
votes1
answer39
viewsThe component for the 'Profile' route needs to be an React type component
App.js import React from 'react'; import { StatusBar } from 'react-native'; // Importação das rotas import Routes from './src/routes'; export default function App() { return ( <> <StatusBar…
-
-1
votes1
answer827
viewsundefined is not a function-Undefined is not a Function/React Native
I’m having a problem, I’m taking a course and is giving this error in React Active, I’ll show you all the code below, can anyone help? I searched about but found no answer That is the mistake:…
-
-1
votes1
answer112
viewsproblems with Axios and React-Native. Axios returning empty attributes
All right? I am developing an application for a client in React-On, due to some integrations that the app needs to have I developed his backend using Laravel 6.x. So far so good, I’ve done all the…
-
-1
votes1
answer178
viewsAsyncstorage with dynamic keys does not save values
I’m trying to make a list where the user sees all the Keys he saved in the app and when he clicks on them will occur the load of the preset he made based on the key. I’m getting the bug: Typeerror:…
-
-1
votes1
answer689
viewsNavigate between different batteries in React Native with React-navigation
Objective: Navigate the screen Loginscreen screen Mainscreen Route code in Routes.js: const AuthenticationNavigator = createStackNavigator({ Login: { screen: LoginScreen, navigationOptions: { title:…
-
-1
votes1
answer34
viewsImage does not get larger than 40x40 pixels
I’m studying reacti Active and I’m trying to show an image in a location on the map. When I adjust the width and height of the image, it ends up being "cut" when it is larger than 40px. I am using…
-
-1
votes2
answers904
viewsStyling the page header with createAppContainer and createMaterialTopTabNavigator
Good evening guys, I’m having trouble with header stylization, because I created a main screen and I believed in it and imported the tabs. In this same file I call 3 screen tabs (business, contact,…
-
-1
votes1
answer285
viewsReact Native upload image network error
I’m having a problem uploading images using React Native, when I select the image the application returns a network error. My code: state = { avatarSource: null, isUploading: false } selectImage =…
-
-1
votes1
answer466
views"-no-jetifier" error when starting React-Native run-android
I had already done the installation of android studio to use the expo, I’m trying to emulate android with React-Native cli When giving the command: React-Native run-android the following error…
-
-1
votes1
answer2942
views(React Native) Typeerror: Undefined is not an Object (evaluating '_this.props.navigation')
I can’t fix this mistake.. someone help me I click the button to go to another page and it appears.. follows the code: [This is the code of the menu component, it has a list of buttons with this…
javascript react react-native react-navigation react-routerasked 4 years, 9 months ago miguelrisquelme 9 -
-1
votes1
answer401
viewsAccess another navigation page using nested navigation
I am trying to access a page, in React-Native, which is on another route and is occurring the following error: "The action 'NAVIGATE' with payload…
-
-1
votes1
answer50
viewsWhy when consulting firebase via snapshot, is returning that maps is not a function?
constructor() { super(); this.ref = firebase.firestore().collection('boards'); this.unsubscribe = null; this.state = { isLoading: true, boards: [] }; componentDidMount() { this.unsubscribe =…
-
-1
votes3
answers429
viewsError installing npm install @React-navigation/stack -> expo start Disconnected
I’m new to React Active and I’m trying to install the React navigation stack using the npm install @React-navigation/stack command to use in an app project with React Active, however after running…
-
-1
votes1
answer424
viewsProblem when placing a Stacknavigator inside the Drawernavigator
I have a problem when creating a browser Stack on the screen Home. I put a button and wanted you to navigate to the other screen "Map". But it gives this error when opening the program: Creating a…
-
-1
votes1
answer71
viewsDispatch Drawer does not work
am trying to implement a Drawer in my app. As I want only in one of my screens. While trying to implement, I felt some difficulties. So I did step by step not to get lost. I created a button and I…
-
-1
votes1
answer1296
viewsHow to switch from one page to another in React Native
Eae guys, I’m starting in React Native, and I’m developing an App, for my TCC, this app is about Soccer Players, and it has a screen that appears a list of these players, and I put a button…
-
-1
votes1
answer417
viewsCheck User login React Navigation
In the React Navigation 5 no longer exists the Switch Navigator. In Upgrading Doc the proposed solution to prevent the user from going back to the login screen is this if ternary that checks if the…
-
-1
votes1
answer216
viewsI’m not able to render Image with Image - React-Native
Sirs(s). When I write like that: <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Button title="Pick an image from camera roll" onPress={pickImage} /> {image…
-
-1
votes1
answer235
viewsHow to view value saved by Asyncstorage?
I have a code that saves and reads the value of a state through Asyncstorage, but when closing the app or changing the screen the value goes back to the value of the original state, which in my case…
-
-1
votes1
answer51
viewsInput text is behind icon
I have a project in reactNative that has an Input at the top and right of that input I have a magnifying glass icon but when I write to that icon, the text is behind the icon, as I do for when the…
react-nativeasked 4 years, 6 months ago tomas 41 -
-1
votes1
answer1572
viewsGradle error starting React Native project
Guys, I’m having trouble starting an React Native project while running the command npx react-native run-android. The mistake is: info Running jetifier to migrate libraries to AndroidX. You can…
-
-1
votes1
answer1333
viewsHow to let a component occupy 100% of the remaining height
I’m trying to get this pink rectangle to occupy the rest of the screen, more specifically... responsive height, tried some shapes, but unsuccessfully. How to proceed? OBS: I’m using the…
-
-1
votes1
answer612
viewsTypeerror: Undefined is not an Object (evaluating 'this.sound.playAsync')
I can’t handle very well with The Expo-av (I don’t think anyone knows why I can’t find tutorials), but what I’m doing wrong? Error import React,{ Component } from 'react'; import { View,…
-
-1
votes1
answer236
viewsError installing React Native on linux Mint
I try to install React Enable from the terminal but only error appears: npm install -g react-native-cli npm ERR! Linux 5.0.0-32-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g"…
-
-1
votes1
answer134
viewsError in call of Arrow function on button - React Native
I want to call the clearMemory function by the "AC" button but I’m not getting it. Follow the reference code: export default class App extends Component { state = { displayValue: '0', } addDigit = n…
-
-1
votes1
answer286
viewsView data from React Native API
Hi Dev’s I’m new in RN, I’m trying to show the return of a json, but I can’t access by the handle on the screen, only in the console. export default Function Functional() { const [date, setData] =…
-
-1
votes1
answer47
viewsHow do I automatically update a state in React Native?
I am new to React Native, I am developing an app for TCC and my idea is to develop an app that will help elderly people or any group with difficulties to learn a little bit about the world of…
-
-1
votes1
answer85
viewsAndroid permission when using Cameraroll to save photo in gallery using React-Native
I’m creating a wallpaper app, but the most important part is the download button I can’t make it work, I’m using Touchableopacity and inside create the function <TouchableOpacity onPress={ async…
-
-1
votes1
answer118
viewsKeyboard.Dismiss() function does not work
I’m trying to make the virtual keyboard disappear when I press any part of the screen in React Native, but it doesn’t work. I have tried to put this function in the views, Texts and even create a…
-
-1
votes1
answer95
viewsDisplay inputText according to the quantity selected in the React-Native Picker
I have the following problem. I have a Piker jam with quantity and I want from the quantity selection I get the same Textinput number defined by the quantity selection. Component Quantity: import…
-
-1
votes1
answer753
viewsTake data from an React Native array
I need to get data from a array of the server to display to the user. A is a show as if it were a feed of a social network, but is showing the same contents over and over again. componentDidMount =…
-
-1
votes1
answer98
viewsI can’t navigate routes of different Stacks with React navigation
I have 3 files of routes. It contains the routes that the user can access without having to be logged in, in my case only the signin screen. import React from 'react'; import { createStackNavigator…
-
-1
votes1
answer153
viewsReact Native with Navigationactions Redux Saga and Reactotron
Good afternoon, I was trying to do a navigation inside a Redux action with the following code: export function* searchByID(action) { try { console.log('action', action); const response = yield…
react-nativeasked 4 years, 2 months ago Taís Regina Moraes Castão 1 -
-1
votes1
answer35
viewsReact Native refactorando class for Function Component
New in RN and I’m trying to refactor from the Component class to Function Component to use Hooks, but at the time of setting the function item. map(), here "setSentences(item);", not reacting,…
-
-1
votes1
answer373
viewsHow to catch the current Geolocation of the cell phone using React Native?
I’m trying to get my latitude and longitude, so I used the following code: import { View, Text, TextInput, StyleSheet, TouchableOpacity } from 'react-native'; import MapView, { PROVIDER_GOOGLE }…
-
-1
votes1
answer119
viewsI cannot render elements dynamically using foreach
I wonder if you have how to render the component Drawer.Screen inside Drawer.Navigator, dynamically. I tried to put the components in an array (materias/index.js) and traverse them with .forEach(),…