Questions tagged as 'react'

0
answers

How to access an element of a Tag

I'm trying to pass my javascript code (ReactJS) the path image: And in the code I write like this: source={{ uri: this.state.modelo.baner[0].url_img }} And the browser accuses this error:    TypeError: Can not read property '0'...
asked by 10.04.2018 / 20:34
1
answer

Typing link in URL does not load page

I have a strange problem. I am browsing a SPA using react router v4, it is working if you start the root navigation, however if you enter the direct address in the URL it gives an error. Below is the code for the relevant parts and the image...
asked by 04.04.2018 / 03:49
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
1
answer

Return the last date of the Array

Hello, I have a code where I am looking for a list of dates. for(var i = 0; i < data.list.length; i++){ if(Date.parse(data.list[i].date) >= dateA){ console.log(data.list[i].date) } } I would...
asked by 26.03.2018 / 20:18
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
2
answers

Email Form React

I made a simple validation using react , and I would like the message 'b' to be available only when the user clicked on submit how can I do it? export default class LoginApp extends React.Component { validarEmail=(e)=>{...
asked by 15.03.2018 / 14: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
1
answer

REST API route pattern

I am creating an application similar to Twitter using Laravel and React, where the database has the tables: Post, User, Relation, Mention and Repost. In the 'timeline' screen of the application will be displayed information of all the tables of...
asked by 09.03.2018 / 14:31
1
answer

Custom style for React

I'm trying to use a custom component, like the code below, but the same is giving error, can anyone give me a light of why the error is happening? import React from 'react'; import {withStyles, createStyleSheet} from 'material-ui/styles' impor...
asked by 28.02.2018 / 16:29
1
answer

ReacJs - Render components according to the route

I'm developing an application with React. I have the index.jsx file below: import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { store } from './_helpers'; import { App } from './App';...
asked by 20.02.2018 / 19:15