Questions tagged as 'react'

1
answer

Problem with react-native-image-picker on ios

I am using this library (react-native-image-picker) in an app that I am developing in the work and I do not finish getting it to work in ios. When I click on the component button I get the option to choose between the gallery of the iphone an...
asked by 04.01.2019 / 13:33
1
answer

.map () on an array of multilevel objects

I have an object with the following structure: {1:[{1:1, 2:2 ...}, {1:1, 2:2 ...},...] 2:[{1:1, 2:2 ...}, {1:1, 2:2 ...}, ..]} I want to reference the first or second property in a react component stateless with a prop and make map to ren...
asked by 03.12.2018 / 18:45
1
answer

Redux crushes previous states

I have a record in native react that has several inputs, that collect the information validate it and send it to the global store and then send it to the bbdd. The issue is that in addition to the inputs, I have a datepicker and a dropdown th...
asked by 23.11.2018 / 14:22
0
answers

How to show arrows (next / prev) on the iOS keyboard for forms

How can I show those navigation arrows in the forms, I tried with several props in the component textInput but none of them resulted.    If there is a method to activate them it would be great to know, thank you very much...
asked by 19.11.2018 / 17:25
2
answers

Link component in React that does not appear in the Home component

I have my main component from where I do the routing Class App extends Component { render() { return ( <Router> <div> <Links /> <Route exact path="/" component={Home} />...
asked by 25.10.2018 / 17:05
0
answers

Render a component according to the state of another component

I'm doing an app that needs to validate a Login to enter another component. For now it only sends an alert when it is correctly logged and changes the state of the component Log In to loggedIn = true; But I do not know how to do that, in additio...
asked by 25.10.2018 / 17:45
0
answers

Help How to validate these fields in Reactjs

I have tried several functions to achieve validate these within a ReactTable. The Airplane field I want to only allow a maximum of 5 characters, and the Weight field I want to be only numeric. I do not know how <ReactTab...
asked by 22.10.2018 / 05:19
0
answers

Problem to detect active screen in React Native

I have currently built a navigation bar using react-native-navigation, with the createStackNavigator function. The problem is that I need to change the color of the icon image when the user navigates to that screen. I tried changing the state wh...
asked by 28.10.2018 / 16:34
0
answers

problem when rendering a photo in a component

I have a problem when rendering a photo in react export default class Media extends React.Component { constructor(props){ super(props) this.state = {subTitle: props.subTitle } } componentWillMount(){ console.log(this.props.img) }...
asked by 14.10.2018 / 21:09
1
answer

Problem with dynamic table in react

I am new to react and I am creating my first crud application with Mysql / react / express js. My problem is that I can not render the body of the table because the data that I am receiving apparently I am not storing it well. The data I g...
asked by 02.10.2018 / 22:14