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
-
2
votes2
answers4130
viewsRun React Native application on a Windows PC iphone
Good afternoon, I wonder if you have any way to run apps developed in React Native directly on my iPhone device but using Windows to write the codes.
-
2
votes2
answers4907
viewsUndefined is not an Object (evaluating 'Rngesturehandlermodule.State')
I’m trying to start a project with React Native. But when I try to use the React-navigation this error appears. App.js: import React from "react"; import { View, Text } from "react-native"; import {…
react-nativeasked 6 years ago Vinícius Fernandes 39 -
2
votes1
answer436
viewsReact Native 100% memory
I’m using the emulator Android Studio to view a app developed in React Nativand as soon as I turn the remote 'start' of React Native in the prompt, the application starts consuming memory infinitely…
react-nativeasked 5 years, 3 months ago Gabriel Ribeiro 495 -
2
votes1
answer325
viewsHow to put Picker to start with "Select" in React Native
I want to put the Picker to start with: "Select", the only alternative I found was to determine a Picker.item with label="Select" and value=" ". However it looks unpleasant at the time the user will…
-
2
votes1
answer479
viewsProblems with Bodyparse on Node.JS using Express (data like POST)
Hi, guys! I am starting my studies in Node and React-Native and I am facing some problems in data transaction in front POST method for my API. I had a similar problem with headers, but I was able to…
-
2
votes1
answer567
viewsReact-Native Moment returns wrong day
I’m using Moment in a project with React Native. And a specific date it does not return the correct day, all the others returns right. I put it in the index.js of the application to see if any…
-
2
votes2
answers1101
viewsCloud Firestore - Composite query
I’m making a query in my database in the firestore, but when I put two where nested, I get the following error: Error getting documents Error: Firestore: Operation was rejected because the system is…
-
2
votes1
answer925
viewsHow do I compress an image in React?
I would like to know how to compress an image in React Native. Currently I am using Flatlist to create GRID images, and would like to learn how to do when adding and compressing a photo of EX: 5mb…
react-nativeasked 5 years, 7 months ago Guilherme Campos 21 -
2
votes1
answer1187
viewsSwitch between Tabnavigator and Stacknavigator in React Native
I have a Tabnavigator (used with createBottomTabNavigator), and all my screens are on it, I use it as a navigation menu in the application and it works right too. But inside one of these screens I…
-
2
votes4
answers11105
viewsError in android SDK "License for package Android SDK Platform 28 not accepted."
I was testing to run my first project on React On, so I ran the command "React-Native run-android", and this error appeared on the android SDK license. My OS is Manjaro linux. I’m new to React…
-
2
votes1
answer126
viewsHow to render my button again in React Native?
I have this button that should have a background-color depending on the state: <TouchableOpacity onPress={this._onPressButtonMassa}> <View style={[styles.button, this.props.hipertrofia ===…
react-nativeasked 5 years, 3 months ago veroneseComS 2,752 -
2
votes4
answers1329
viewsReact-Native run android
Hello guys I’m starting a project with React-On but I’m having serious problems so far in trying to run the code in the emulator of android studio, so far I have not made changes in the project…
-
2
votes1
answer11168
viewsAxios get giving network error
I’m taking a course of React Active, but since my computer didn’t run Genymotion, I had to improvise and downloaded Bluestacks to debug the projects. The problem is that when my program requests…
-
2
votes1
answer1811
viewsHow to use React-Native-web?
How to use the React-Native-web ? To use the React-Native-web (https://www.npmjs.com/package/react-native-web) not just make a: npm install react-native-web react-art then add that part in the…
react-nativeasked 5 years, 2 months ago annety 25 -
2
votes1
answer505
viewsHow to create dynamic components in React Native?
I need to create a component for evaluation, where it is possible to evaluate something with 0-5 stars by clicking on the star icons. But the way I do it, I’m exceeding the amount of this.setState()…
-
2
votes0
answers606
viewsConnection error at EXPO
Some of you, like me, must have done last Omnistack Week. I am having an error when connecting my back-end Login route in my front-end. I am using the axios for that. When I give a yarn start or…
-
2
votes1
answer565
viewsCalendar showing only month and year in React
I’m developing an app with React Turn on and I wanted the calendar to show only the month and the year. I’m trying with the dependency React-Native-calendars but was unsuccessful. import React, {…
-
2
votes1
answer95
viewsHow do I access the app via a Url?
I want to access a screen in my app project, by mobile, through a URL that was sent to the email. The project is being developed at the expo and I am trying to use the "linking" of the expo same, I…
-
2
votes2
answers417
viewsAxios falls in catch even with status code 200
I have a login code, that when a user logs in if the data is incorrect a backend done in nodejs returns an error 401 and if everything is correct returns a status code of 200. During the execution…
-
2
votes1
answer1703
viewsCustom source React Native
I’m having a hard time adding a font to my React Native project. I have tried with many tutorials but none fits well in my case, and several do not work. This is where I define my already stylized…
-
2
votes2
answers132
viewsHow to pass value between Functional Components using Navigation.navigate
I am trying to pass values from one Functional Component to another Functional Component with navigation.navigate, on the first screen the value is there, I can see it rendering it or on the…
-
2
votes1
answer1417
viewsHow to create an object array with React useState
I’m trying to do the following procedure at React Native, with the Expo: I have some data stored in Asyncstorage of the device. The code below returns me the following result: CODE…
-
2
votes1
answer155
viewsAxios: stop in GET does not work - React Native
I have a database in Mongo with customers and establishments. I want to recover the establishments filtered by category. My code is like this: const [datas, setDatas] = useState([]) //recupera os…
-
2
votes1
answer107
viewsError configuring Admob in React Native
I have to add some lines of code in the /Android folder in my React Native project to use Admob when I start my project react-native run-android he arrives at this part and the error occurs =>…
-
2
votes1
answer170
viewsProblem typing first parameter of React setState
Hello, I’m a little new to the typescript world and there’s something going on that I can’t explain why. I have the following state: const [estaExecutando, mudarExecucao] = useState(false); Step to…
-
2
votes0
answers30
viewsRun an asynchronous function in React-Nactivate only the first time it is called
I am using the function of the expo-camera Camera component onBarCodeScanned={(event) => { handleQRCode(event); }} And every time there’s a bar code he calls me handleQRCode, but just passing the…
-
2
votes1
answer72
viewsHow to optimize rendering on functional components in React?
In my studies on React Native I’m bumping into rendering optimization on components, specifically on functional components. It is known that any change in status or props, the default component is…
-
2
votes0
answers28
viewsAvoid unnecessary rendering in React Native with multiple Textinput
The question is this: I have basically a code like this (I can’t send the real code right now, I’m sending this "Pseudo-Code" so ignore syntax and standardization errors): const Componente = ()…
-
1
votes0
answers51
viewsI can’t make a Listview
Guys, I’m nine with React-Native and I’m having a hard time understanding Lisview. I can’t understand how I can create several of them using for. I’ve done it so far. import React, { Component }…
react-nativeasked 7 years, 11 months ago hudjoubert 109 -
1
votes0
answers89
viewssubscriberView Too slow or caught React-Native-opentok
I am using callstakio’s React-Native-opentok, when using only Subscriber it works normal, but when used Subscriber+Publisher Subscriber does not work properly. render() { return ( <View>…
-
1
votes2
answers661
viewsDatabase - Sqlite
I am developing an application that needs a database, I chose Sqlite. As I am new and have no experience in Sqlite I have come to ask you: How can I create a database with Sqlite and React Native?…
-
1
votes3
answers361
viewsAttempt to manipulate values of a vector generated by a JSON
I am trying to "change" values of a vector received from the consumption of a JSON. My logic was to create a for to traverse the vector, parse the item on that partition and rewrite into a copy…
-
1
votes2
answers781
viewsSlow reaction when opening graphical dependencies
After executing the commands: react-native init AwesomeProject cd AwesomeProject react-native start cmd, I cannot run the graphic part of Reactuy-Android Already have Android installed How can I…
-
1
votes1
answer784
viewsReact Native installation error
I am trying to configure the environment of the Active Act on my computer. Able to install the choco package manager. But when I try to install python2 with the command: choco install python2 this…
-
1
votes1
answer155
viewsError in React-Native: does not communicate with AVD or Devices
I came across the following error: my app could not communicate with the android AVD nor with my Device. Both are connected and working...…
-
1
votes1
answer279
viewsHow to pass sentences to a variable and then display randomly
Well, I started programming yesterday in React Native and still do not understand very well how to do things.... I need to pass a series of sentences to several variables, each variable a sentence,…
-
1
votes1
answer416
viewsHow accurate is the geolocation of React Native?
What is the accuracy of React Native geolocation data. It uses native mobile geolocation? I wanted to get an idea of the margin of error of the location, whether it is in magnitude of meters or…
-
1
votes1
answer97
viewsStructuring the React project
Galley, I created a React-Native project and I want to structure along with folders, for example create the screens folder to create the. The beginner doubt. Whenever I run the project it is…
-
1
votes1
answer3123
viewsApp in React On does not update
Hello. I’m doing the app, but the app doesn’t update when I modify the code. It’s only on the default test screen... With the message to press the "R" twice. I’m using the phone to run the…
react-nativeasked 7 years, 3 months ago Marcos Aurelio 11 -
1
votes2
answers292
viewsTools for Prototype Mobile App
What do you use to prototype a mobile app before its development? Even paper, some tool to draw what would be the screens and your browsing, etc.
-
1
votes2
answers648
viewsError Including Image in App
I created a default project, includes some images . png in the project in the main folder: Project - image.png - index.android.js - ..... When running run-android an error is displayed indicating…
-
1
votes1
answer1044
viewsError while trying to run app in android studio emulator
I’m trying to run the app in the emulator of Android Studio, at first the terminal seems to be all right: D:\react-apps\teste>react-native run-android Scanning 557 folders for symlinks in…
react-nativeasked 7 years, 3 months ago Mateus 977 -
1
votes0
answers72
viewsRefresh Controll stops working if listview exits the screen
I’m trying to get a list of Firebase items, including images, that will be rendered in a Listview. But the problem is that when Listview gets bigger than the screen, then Refreshcontrol no longer…
-
1
votes2
answers1460
viewsReturn address through geolocation
In the application I am developing would like to put a button that when pressed returns the current address where it is. I was able to do the geolocation part and I can get the current latitude and…
react-nativeasked 7 years, 1 month ago Mateus 977 -
1
votes1
answer605
viewsCreate modal window
I’m starting an app: import React, { Component } from 'react'; import { StyleSheet, Text, View, StatusBar } from 'react-native'; import Button from 'react-native-button'; import { Actions } from…
react-nativeasked 7 years, 1 month ago Mateus 977 -
1
votes0
answers537
viewsError React-Nactivate while trying to generate apk
After following the documentation steps React-Native, when I get to the part of executing the command gradlew assembleRelease I get the following error:…
-
1
votes1
answer428
viewsUse Geocoder to return the device address
I want to put in my application a button that when pressed returns the current address of the cell phone. The latitude and longitude I am managing to return correctly, and to convert this data into…
react-nativeasked 7 years, 1 month ago Mateus 977 -
1
votes1
answer176
viewsIs there any way to make a component listen to a React Native function?
I need to make a bind to a function that returns me if an item is marked or not, however the function that returns me this is only executed once, there is a way to bind to that function? <List…
-
1
votes1
answer65
viewsIs there any way to get what the user is hearing?
I wonder if you have any mode or even a lib so I can get the audio player information from the mobile phone, such as music duration, name, album etc. with React.
-
1
votes1
answer1601
viewsHow to use substring in React Native?
How to use substring in React Native? if (total >= 1000){ const total2 = total.substr(total.lenght - 3, total.lenght); total = total2 + '.' + total.substr(total.lenght - (total.lenght - 1),…
react-nativeasked 6 years, 10 months ago Italo Rodrigo 4,344