Questions tagged as 'react-native'

2
answers
1
answer

How to create component hierarchy with React Native?

I want to create components with TextInput, the default being my Input component without a mask, and the children will have a mask or some other treatment. I currently have the default Input that contains only the styles and return the raw te...
asked by 02.04.2018 / 15:02
2
answers

I try to install React Navigation and it returns a denied permission error

I tried to install the React Navigation module in my project with the following command: npm install --save react-navigation But I get the following error: npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone -q git://github.com/re...
asked by 03.04.2018 / 18:42
1
answer

How to generate iOS application with React Native

Can someone tell me how the process of generating an iOS application works? Assuming you have the code ready you only have to generate the app, do I need to have an iMac?     
asked by 19.03.2018 / 00:06
0
answers

Change type react-native-masked-text

I'm having trouble solving a problem by using a single field to serve as CPF and CNPJ . Then I thought of a solution, use props to pass the type of my component, did something like this ... state = {masked: 'cpf', cnpj:...
asked by 16.03.2018 / 02:04
1
answer

Fit with ReactNative Layout

I want to make a layout as follows: <ScrollView style={{flexDirection:'row'}]> <View style={{flex:1}}></View> <View style={{flex:1}}></View> <View style={{flex:1}}></View> <View style={{flex...
asked by 15.03.2018 / 21:42
1
answer

Store data on device [closed]

I'm developing an APP with React-Native and have a problem that I'm trying to solve, I make a communication with an API and it returns me a token for services consumption when I authenticate the user, I need to save that device token of the user...
asked by 14.03.2018 / 22:32
0
answers

Hide header when scrolling the screen

I'm trying to hide header when scrolling in FlatList , it's currently working, but some bugs, some blur when I scroll, I'd just like it to disappear in a smooth way. My code is currently as follows. state = {height: new Animated...
asked by 11.03.2018 / 18:34
0
answers

Eslint Installation

Soon after doing the step by step installation of the Eslint I got this error. Does anyone know how to solve it?     
asked by 05.03.2018 / 03:58
0
answers

Reduce image quality of a URL in react native

The app I'm developing, done in react native, has many different page images inside it. The problem is that some images are very large and on bad devices it crashes the application in other cases leaves the device slow. My question is, is it pos...
asked by 27.02.2018 / 14:33