Questions tagged as 'react-native'

1
answer

How to prevent a React Native application from returning when you click the BackButton using React Navigation

Hello, I'm creating an application in React Native, and for the navigations I've been working with the React Navigation plugin. The structure of my project looks like this: import React from 'react'; import { View, Text, Button } from 'react-n...
asked by 01.11.2018 / 21:55
2
answers

Error Node App React Native

I can not create new react native project Whenever I run the command: react-native init MyProject it can not finish creating the project. The following image:     
asked by 10.07.2018 / 03:52
1
answer

Line break in placeholder in react-native textinput

Is there a possibility of a line break in the react native TextInput so that it shows the entire placeholder?     
asked by 12.07.2018 / 13:42
1
answer

How to navigate with the react-router-dom when an action occurs

Hello, I'm starting to work with React and I'm doing an integration with Firebase. My problem is this, I can already trigger all the actions I need, but when I fire my last action from USUARIO_ENTRAR_SUCESSO I need to react-router-dom...
asked by 16.06.2018 / 17:58
1
answer

React Native Maps

I'm trying to implement the React-native-maps library in my project, when I run react-native run-android I get this error in CMD: * Where: Build file 'C:\Users\Henrique\Documents\New folder\NoExpo\AwesomeProject\node_modules\react-native-maps\...
asked by 06.05.2018 / 23:36
1
answer

React Native: check which checkbox is selected from a list of checkboxes

Hello, I have the following problem I have a list of checkbox , and I would like to check which checkbox is selected after clicking the button. import React, { Component } from 'react'; import { Platform, StyleSheet,...
asked by 30.04.2018 / 15:10
1
answer

How can I change the state of an array item in React Native

I have a list that is loaded after the api returns, this list populates a FlatList. By clicking on any item I would like to mark it with the status it was viewed: userViu How can I change the item just clicked. [ { "id": 3,...
asked by 24.03.2018 / 22:55
1
answer

Keyboard squeezing components

When I click on TextInput, the images are squeezed: How to fix? import React, { Component } from 'react'; import {Text, View, TouchableHighlight, ImageBackground, TextInput, Image, Picker} from 'react-native'; import {Button} from 're...
asked by 15.03.2018 / 18:10
1
answer

React Native Maps - CSS HELP

I'm trying to make an icon look under the mapview in my project, like this: Butnowitlookslikethis: Code:<Viewstyle={styles.viewMaps}>{this.state.ready&&this.state.region&&this.state.region.latitude!=null&&this.s...
asked by 08.05.2018 / 22:35
1
answer

this.setState does not work

Does anyone know why the function this.setState (token: token_here) is not working or returning error? export default class Init extends Component<Props> { state = { // Evita que o código seja executado duas vezes....
asked by 26.02.2018 / 05:04