Questions tagged as 'react-native'

1
answer

Possible Unhandled Promise Rejection Error

I have a problem calling a API , and this problem only happens in a certain situation, an example: // Situação que funciona perfeitamente const response = await axios.get('https://localhost:8080/api/appcompras/catalogues?scheme_url=...
asked by 11.03.2018 / 00:39
0
answers

React stylization with "width" and "height" are not recognized. What can it be?

I'm not able to use width and height in the style of the componants, the text editor is not auto-complete (with ctrl + space) as in normal tags. It is as if the css lib was not installed ... i did it: npm install w3-css --save and react-native l...
asked by 01.03.2018 / 16:08
1
answer

Error Login Facebook React Native

I am having problems doing login in react-native , I followed all the corresponding steps, and at the time of logar it presents the following error    cannot read property 'logInWithReadPermissions' of undefined...
asked by 25.02.2018 / 04:09
0
answers

Position icon next to input React Native

I'm having trouble positioning icon next to textInput , they always stay one below the other. <View style={itemInput}> <Icon active name="person" style={iconInput} /> <TextInput placeholder="Email" style={in...
asked by 11.02.2018 / 15:34
0
answers

Slow action firing and delayed new state return ...?

I'm having a little delay in triggering the actions, when triggering an action takes about 2 seconds for it to be activated, and when it is instantly activated, the return of the new state sometimes takes 2 seconds sometimes up to 8 seconds , I'...
asked by 15.02.2018 / 16:56
1
answer

Width Percent Flexbox

I'm having trouble defining items using Flexbox. What I need to do is to leave my item in 90% , currently I'm doing so, but it does not work. <View> <ScrollView horizontal> <View style={Ca...
asked by 04.02.2018 / 16:32
1
answer

Use if in onPress event

I'm trying to use a if like this: <Button iconRight={{ name: 'search', type: 'font-awesome' }} title='BUSCAR' buttonStyle={{ marginTop: 15, borderRadius: 7, backgroundCo...
asked by 28.01.2018 / 21:41
1
answer

Tabbar React Native

I'm having trouble positioning a component of tabbar I'm doing. Home.js import React, {Component} from 'react' import {View, Text, ScrollView} from 'react-native' import Header from './../components/Header' import Card from...
asked by 26.01.2018 / 23:30
1
answer

Reuse code in react native

I have a code that repeats on every page. How can I solve this problem by reusing the script. export default class App extends Component<{}> { onMenuItemSelected = item =>{ if(item == "inicial") { Actions.in...
asked by 17.12.2017 / 00:28
1
answer

Problem installing ReactNative-FBSDK (Facebook Authentication)

I am studying the type of authentication in firebase, but I was only able to run the default authentication (email / password); I'm having trouble signing in via Facebook because the installation is giving error. I use the "NPM install react-nat...
asked by 12.12.2017 / 18:28