Questions tagged as 'react-native'

1
answer

How do I expect a method to terminate in JS?

Hello, Dude, I can not wait for the method to finish before showing the return, can anyone help me? getValor(jogador) { const id_grupo = this.props.grupoSelected.id; if (jogador.financeiro) { const arrayFinanceir...
asked by 24.11.2018 / 20:10
0
answers

Execute a function and it takes more than x seconds of the error - React Native

Good afternoon! I made a function that searches the data of a JSON on the Web, but wanted to wrap it in a function that would take longer than for example 10 seconds to explode an error on the screen, currently the page is only blank, it only...
asked by 20.11.2018 / 19:13
1
answer

How to authenticate in Firebase through Google using Expo (react native)?

I have a web application in firebase, but I'm using it in the development of an android / ios application using Expo. I want authentication to be done by Google, but it happens that because it was created as a web, it asks for ID and secret key...
asked by 12.11.2018 / 13:59
0
answers

Placing script tags on react native

How do I put javascript tags in react native? I have this tag to put into a project <script data-cfasync='false' type='text/javascript' src='link'></script> It's an ad tag. In the browser it works. But I do not know how to...
asked by 12.11.2018 / 17:58
0
answers

Child object appears as 'undefined', but an earlier level of the object shows the value

The this.props.usuario.user.guia field is as undefined , but when it is entered in the log the this.props.usuario.user object appears with value. This does not make sense to me. Log code: if (!this.props.usuario.logout)...
asked by 09.11.2018 / 01:42
1
answer

Error when implementing TensorFlow in React Native

Save! I'm trying to implement the TensorFlow library in my React Native application, based on ese e in this tutorials. But I can not even run the project, getting the following error:    Unable to resolve module ../assets/graph.pb...
asked by 30.10.2018 / 17:03
0
answers

Error in testing Reac Native Code (Expo)

I do not know how to solve this problem: My index.js /** Criando o Entry Point da pasta src */ import React from 'react'; import Routes from './routes'; const App = () => <Routes />; export default App;     
asked by 29.10.2018 / 23:53
0
answers

Regressive timer updates and does not accept new value to start counting

Countdown timer when clicking start returns the value that is set in the parameters. If you add minutes to the counter before starting when you click the start it will return to the value set and not to the new value entered. import React, { C...
asked by 28.10.2018 / 21:19
1
answer

Error starting project with React Native Expo

I have version 8.12.0 of NodeJS installed in Debian 9, so I installed the Expo with the command npm install -g expo-cli , which in the end returned the following alerts: IgnoringthisIcreatedaprojectwiththecommandexpoinitNomeProjeto.Sofarev...
asked by 28.10.2018 / 16:59
1
answer

What's wrong with running the react-native app?

Hello, I'm trying to run my native react app through the    sudo react-native run-android But I always get the following error message: FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '...
asked by 02.11.2018 / 20:42