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
votes3
answers1171
viewsConvert string to number
How to convert string to number in rect? I have a function that receives two parameters of type number(2,6), however, when sending them from one screen to another it is received as string. How do I…
react-nativeasked 7 years ago Italo Rodrigo 4,344 -
1
votes1
answer82
viewsBreaking data divided by comma
I’m trying to make a tracker using Adian, a gps module and a gsm. I can receive the latitude, longitude and send to cell phone as SMS, but in cell phone I’m trying to build an application with…
-
1
votes2
answers972
viewsLink to React Native phone
Someone would know how to put a link to open the smartphone’s Telefonic call when the user clicks on the phone number in apk ? in waiting ...
-
1
votes0
answers173
viewsGeolocation of the Act Activate Very Slow
Good afternoon. What is the most efficient way to get the user’s location. The method getCurrentlocation Geolocation’s own React-Native is taking around 3 seconds when enabling the…
react-nativeasked 7 years ago Raphael Corujo Moura 29 -
1
votes1
answer169
viewsRemoving space at the end of a word
I created an application in React Enable and it searches online via POST. It works well, the point is that some devices include a space at the end of words, ex: The user types natação, but the phone…
-
1
votes1
answer8201
viewsError React-Native run-android
I installed the React-Native-cli, android sdk and the emulator of android. I managed to do the init but when I run the command React-Native run-android it shows the log: Scanning 577 folders for…
-
1
votes2
answers1221
viewsWhat is the link command in npm for?
The question is the same as the title: What is the link command in npm for? Some modules of React Native require the command to be executed npm link react-native-nome-do-modulo And sometimes some…
-
1
votes0
answers584
viewsDoubt how to recover data using Next Act-Native
Fala galera, I’m still starting in React-On and I’m doing a test by connecting to a webservice: consultar(){ var ret = ''; ret =…
-
1
votes1
answer1443
viewsHow to use state in a function?
I have the following code: export default class App extends React.Component { constructor(props) { super(props); this.state = { xsemana: '0', meses: '1', minutos: '1', }; } calcula(){ const total =…
react-nativeasked 7 years ago Italo Rodrigo 4,344 -
1
votes1
answer355
viewsProblems starting an Application with React Native
I’m using the Deepin Linux operating system. I use the following commands: react-native init NomeDoProjeto cd NomeDoProjeto When executing the command: react-native run-android I have the following…
-
1
votes0
answers90
viewsSearch in local api, React-Native
Guys I’m with a local api in eclipse and I’m using Tomcat I’m trying to use it with Xmlhttprequest in React-Native and I’m not getting from the always error request. onPressButtonAtualizarBanco=()…
react-nativeasked 6 years, 8 months ago Night 11 -
1
votes0
answers51
viewsReact-Native init proxy-related error
I’m not able to configure my first app, it’s something related to proxy, but I have no idea how to solve this I’ve researched everything that is place someone knows how to solve?…
-
1
votes0
answers173
viewsSelecting a Native-Base Listitem
I currently use Native-base for my application I have a Listitem that lists dummy entries and I would like to keep the item pressed so that the id is saved as true in an array. Someone who can shed…
react-nativeasked 6 years, 12 months ago Ronnie G. Chagas 11 -
1
votes1
answer96
viewsHow to return only 10 records in firebase?
I wish to return only an exact number of firebase records, but I don’t know how it should be done, is there any way?
-
1
votes1
answer334
viewsWhy use Stylesheet.create?
Why use the StyleSheet.create? When starting a new project (react-native init test, the project comes with the style as follows. const styles = StyleSheet.create({ container: { }, welcome: {…
-
1
votes1
answer2549
viewsHow can I change the state of an array item in React Native
I have a list that is loads after the return of the api, this list populates a Flatlist. By clicking on any item I would like to mark it with the status that was viewed: user How can I change only…
-
1
votes1
answer994
viewsHow to create component hierarchy with React Native?
I want to create components with Textinput, the default being my mask-free Input component, and the kids will have a mask or some other treatment. I currently have the default input that contains…
-
1
votes1
answer366
viewsImport style React
You can import a style from another directory in the React import? I tried something similar to what is done in require to change the directory with ".. /" but to no avail.
-
1
votes1
answer250
viewsPicker does not manually select
I have this Pickeruf component, which displays the list of states. import React, { Component } from "react"; import { StyleSheet, Platform } from "react-native"; import { Picker } from 'native-base'…
-
1
votes0
answers55
viewsError saving Logs and Images - Detox[12591] ERROR: [exec.js/EXEC_FAIL, #6]
I am studying the Detox lib for automated testing. I can run the tests normally and they pass, but when I add the command --record-logs all it returns me this error. From what I understand is some…
-
1
votes1
answer181
viewsHow to interpret React Native error messages
How do I interpret error mensgans like this? How much I work with React Native throughout the tests I always come across these mensgans. Only I don’t always know how to treat them. Does anyone know…
-
1
votes0
answers2425
viewsHow to use Firebase Notification in an React-Native project
To Create a React-Native project with Firebase notifications Steps to add pushNotification Link: https://rnfirebase.io/docs/v4.0.x/installation/initial-setup Create or open an React Native project…
firebase react-native android-gradle firebase-cloud-messagingasked 6 years, 8 months ago Carlos Ramon S S 11 -
1
votes1
answer399
viewsProblems with APK React-Native
When I compile the project it generates the APK in the briefcase C:\Users<usuario>\Desktop\projetos\appTeste\android\app\build\outputs\apk. If I catch the APK and put in a cell phone it…
-
1
votes1
answer537
viewsReact Native - fetch(url) always returning a Promise
I’m starting in React Native, I had no problems until I started making HTTP requests. I’m using this function: async getJSON(url, parameters){ try{ //check if URL isn't empty if(url.length == 0)…
-
1
votes1
answer1164
viewsHow to change the backgroundColor of a Tabnavigator in React-Native
class TelaInicial extends Component { static navigationOptions = ({ navigation }) => ({ tabBarLabel: 'Trevo', tabBarOptions: { activeTintColor: '#fff', inactiveTintColor: '#eee', showIcon: true,…
react-nativeasked 6 years, 2 months ago Aline Lisboa 11 -
1
votes1
answer1497
viewsNeed to stay using android studio to program in React
You need android studio to program in React Native? My machine does not run the program well, can barely use it actually. While the emulator I can test the apps by mobile without problems. I’ve been…
-
1
votes1
answer367
viewsOrange Push and Native React notification
I have a web application developed in Laravel, where I register clients, register orders for each client where an order code is generated and for each order I register the steps. This application…
-
1
votes1
answer629
viewsReact Native application using Firebase
Hello, I am creating an application using React Native, and trying to integrate with Firebase, I found an application of Starter project, which already has the integration ready, just need to add…
-
1
votes0
answers192
viewsHow do I style child components through parent components?
I’m learning React Activate, and I have a question related to styling children components more productively, because so far, I have to create a style and insert it into each component I want to…
-
1
votes0
answers106
viewsHow to run an Expokit project on a mobile phone/emulator for development?
I had a project done in Expo, but ejected it using Expokit, which creates the folders /android and /Ios, I can generate the apk however I can not emulate on my mobile for development. The command I…
-
1
votes1
answer163
viewsProblems with canvas inside a Webview in React Native
Why when changing the height > 100 and width > 640 on the canvas inside a Webview in React Nenable, nothing more and drawing? //funciona ... canvas.width = 640; canvas.height = 100;…
-
1
votes1
answer1981
viewsLocal Data Storage with React Native
I am creating an application that needs to store some data locally These are simple examples: "DATE" "Local" "Moisture" etc.. As a reference it would be something like having a data file or better a…
react-nativeasked 6 years, 1 month ago TDamiao 13 -
1
votes0
answers55
viewsImport code in React Enable windows for Mac
I’m having a question with React Native. If I develop in the environment Windows, how do I pass this code on Mac to distribute the project to Android and IOS?…
-
1
votes1
answer2744
viewsHow to cancel <Text> line break?
I’m nesting several components <Text> then the problem is that at the end of each <Text> React breaks a line. I know if I do it that way: <Text> <Text>Oi</Text>…
react-nativeasked 5 years, 10 months ago Vinicius Morais 1,293 -
1
votes1
answer671
viewsError when compiling REACT
I am getting the following error on my terminal when trying to compile React ./src/pages/main/index.js Line 3: 'api' is defined but never used no-unused-var Follows the code: import axios from…
-
1
votes1
answer677
viewsProblems with React Native
Good afternoon, I’m getting an error whenever I run the command "react-native run-android" to start my first application on AVD with version 6.0 of android. I am a beginner in React Native, and…
-
1
votes1
answer3735
viewsHow to update an on-screen variable in React-Native?
I have my own page: import React from 'react'; import { ScrollView, StyleSheet, Text, Button, } from 'react-native'; export default class ArticlesScreen extends React.Component { constructor(props)…
-
1
votes1
answer2142
viewsReading barcode in React-Native
How do I read barcode by phone camera with React-Native?
-
1
votes1
answer579
viewsWhy use Redux to request the API in React?
I started to see React well before learning how to use Redux and always requested in the API using a Fetch or Axios in the component itself. Today I already venture into the world of Redux and come…
-
1
votes1
answer3828
viewsHow to move this.state from one screen to another screen with React Native
Guys, I’m new to React Native, what I want to do is catch a this.state from screen 1 for example and use it on screen 2 to print that same this.state. I made a very grotesque example to try to…
-
1
votes2
answers210
viewsError opening Android React-Native project on Androidstudio via macos
I’m trying to open a project Android React-Native existing through the AndroidStudio, but the following exceptions are displayed for me:…
-
1
votes3
answers1699
viewsError running the React application on android emulator
I can’t open an React Native project in the emulator, I’ve tried using Genymotion and Android Studio but always the same error occurs when I run: sudo react-native run-android 27 actionable tasks: 2…
-
1
votes1
answer734
viewsHow to validate phone with React-Native sms
In the app I’m working on after logging in by facebook the user needs to fill in his data, including his phone, but I need to confirm the user’s phone by sms before allowing him to save the data The…
-
1
votes1
answer3118
viewsBlack screen in android emulator
I’m trying to start the emulator by android studio and genymotion but in both is a black screen in emulator: It may be my graphics card that is terrible, but would have some way to fix it? Or some…
-
1
votes2
answers232
viewsHow to identify text size (Lenght) with a state
I was trying to do a CPF validation , with a number to be typed equal to 11, otherwise a message would appear and the text would be deleted. The prolema is like identifying the number of lines that…
-
1
votes2
answers347
viewsI can’t save data to the Firebase database - React Native
I cannot save data in the Firebase database - React Native. I have already done the installation and import of Firebase in the project, the code is like this: componentWillMount(){ var config = {…
-
1
votes1
answer73
viewsProblem with variable javascript with firebase
I’m having problems with javascript react-native, need to store the return of firebase using a for in a variable and access it externally, but the fact is that nothing is returning. export const…
-
1
votes0
answers67
viewsReact Native Release app error in play console
I sent my application to Play Store, however, in the store’s bug console, some errors appeared after a few downloads. On my phone, this type of failure never occurred Error:…
-
1
votes0
answers190
viewsError while initializing React
Starting JS server... Building and installing the app on the device (cd android && gradlew.bat installDebug)... FAILURE: Build failed with an exception. * What went wrong: Could not create…
react-nativeasked 5 years, 12 months ago Anderson 127 -
1
votes2
answers130
viewsProblem with setState in React Native: "Can’t call 'setState' on a Component that is not yet Mounted."
all right? I’m a beginner in React Native and in this app I’m making I can’t call 'setState' in the method I created. The name of the method I created is called includingMed() and I call it here…