Questions tagged as 'react'

0
answers

React implementation with external library (SDK)

I have the following problem, in the project that I am participating in React, the company is considering the possibility of acquiring a tool to capture images (selfie and documents). Something similar to what NuBank does today to open an accoun...
asked by 04.10.2018 / 03:18
0
answers

Problems with Drawer Navigation react-native

I'm trying to make a navigation system, but I packed it when I had to use the drawer navigation. The problem is that I can not navigate to my drawer. I have already tried to set the headers options in%% of the Root stack, but this way the hea...
asked by 26.09.2018 / 13:46
1
answer

SetState does not work inside component

Hello, I'm trying to get a setstate but when I run it it returns me which is not a function renderInput({ input, label, type, meta: { touched, error, warning } }) { onChangeTextDestino = async (param) => { try { this.setSt...
asked by 27.09.2018 / 22:10
1
answer

Update data automatically in react-native app

Hello, I'm a beginner for react-native, how do I update fields automatically when your API data changes (this change is not done in the app, it just monitors), for example: if there my database I change the name of a product in the react app auto...
asked by 22.09.2018 / 19:00
0
answers

I would like to implement a modal of verification within a modal

component that shows the buttons and modal import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Redux import { connect } from 'react-redux'; import * as actions from './actions'; // Global Components import MainCo...
asked by 28.09.2018 / 22:32
0
answers

input loses focus when typing

Hello, I'm losing focus when typing any letter in my input Component and your call const RenderInput = this.renderInput; <Field name="email" //component={this.renderInput} component={(props) => <this.renderInput...
asked by 28.09.2018 / 21:03
0
answers

How to load a jquery plugin into the reactjs

I'm trying to load a selectpicker bootstrap plugin into a reactjs project the problem that occurs is the time to start the plugin it does not load. import $ from 'jquery'; componentDidMount() { $('.selectpicker').selectpicker(); } compon...
asked by 24.09.2018 / 15:47
0
answers

How to create a compiler that brings data from 2 url's via fecth api?

I have 2 API addresses below, and I need to create a react card that brings the photo of the first API, and the second post. link link componentDidMount() { fetch('https://jsonplaceholder.typicode.com/users') .then(response=> res...
asked by 22.09.2018 / 00:26
1
answer

Problem with CORS in React application

I have an application that makes a request for a JSON via axios. Follow the function axios.get("http://localhost/teste.json") .then((res) => { this.setState({value: res.data.tgt.screenPosX}) }).catch((err) => { console.log('E...
asked by 10.09.2018 / 20:44
1
answer

How to get the json data with react, fetch and rest api?

Hello, I have a mortal doubt .. I am doing some studies with React, and for this I am pulling a json from the rest api wordpress. When I put something like fetch (" link ) when I step querys like fetch (" link ") it does not pull the data....
asked by 13.09.2018 / 16:24