Questions tagged as 'react-native'

0
answers

Select a Native-Base ListItem

I currently use native-base for my application I have a ListItem that lists the dummy entries and would like to keep the item pressed that the id is saved as true in an array. Someone who can give me a light on how to proceed? state = {...
asked by 02.02.2018 / 12:28
0
answers

Doubt how to recover data using react-native axes

Talk to people, To start still in react-native and I'm doing a test connecting to a webservice: consultar(){ var ret = ''; ret = axios.get('http://192.168.0.142:8080/rest/clientes?cpf=05092845406').then( response => { console.lo...
asked by 19.12.2017 / 20:49
1
answer

I can not change the default app for react native

I made some changes to the index.android.js file and saved it, when running react-native run-android command, the app remains the same !! The code looks like this: var React = require('react'); var Text = require('react-native').Text; var AppR...
asked by 13.12.2017 / 04:31
0
answers

React-native error when trying to generate apk

Following the steps in the react-native documentation, when I get to part of running the gradlew assembleRelease command I get the following error:     
asked by 12.12.2017 / 23:55
1
answer

Is there any way to make a component hear a React Native function?

I need to bind to a function that returns me if an item is checked or not, however the function that returns this is only executed once, is there a way to bind to this function? <List dataArray={this.state.talhoes} renderRow={(talha...
asked by 14.10.2017 / 21:44
0
answers

What is the best strategy for updating data only when necessary?

In an application with React Native , using Redux and Redux-Persist , what is the best way to identify that content needs to be updated? In my case, I have an application that makes some requests on start up. When I enabled...
asked by 16.09.2017 / 17:27
0
answers

Refresh Controll stops working if listView exits the screen

I'm trying to get a list of Firebase items, including images, that are going to be rendered in a ListView. But the problem is that when the ListView gets larger than the screen, then RefreshControl no longer works. Running, with a full li...
asked by 14.09.2017 / 20:55
0
answers

Problems to emulate app with Expo

I installed everything needed, and when I run npm start it generates QR code all right. But when I read the QR in the Expo app it appears: Something went wrong. Could not load exp://192.168.0.168:19000.     
asked by 18.08.2017 / 23:25
1
answer

Structure React project

Galera, I created a react-native project and I want to structure it with folders, for example create the screens folder to create the components. The beginner's doubt. Whenever I run the project it is redirected to index.android.js In t...
asked by 09.08.2017 / 20:50
0
answers

How to configure a WebRTC signaling server for connection to the mobile app

I'm trying to integrate a WebRTC signaling server with a mobile application in React Native and communicate with a command line in typescript. The signaling server is tested in this TS code: import service from '../src/service' import Connecti...
asked by 23.08.2017 / 20:31