Questions tagged as 'react'

1
answer

How to disable React Navigation Drawer on specific routes

Hello, I'm creating an application that should not display Drawer on specific routes like login, registry, etc. Currently my file looks like this: import React from 'react' import { FluidNavigator } from 'react-navigation-fluid-transitions' i...
asked by 11.10.2018 / 17:28
1
answer

React Route without link

I'm starting my studies with React and I'm using the React Router to navigate between pages by clicking links in the menu, but I have a question, how do I access a page without a link? How do I set up a route in this case?! The project I created...
asked by 21.10.2018 / 19:50
1
answer

Callback with Redux-thunk

I would like to know how I would do to have a return on dispath call something like this, with React: this.props.store.dispatch(dados, result => { console.log(result); }); In this line above console.log never enter! index....
asked by 10.09.2018 / 20:02
1
answer

axios basic auth - how to pass user and password to api?

I was looking at the axios documentation and saw that to pass the user and password it is necessary to use: auth: { username: 'janedoe', password: 's00pers3cret' }, I applied the same in my reactjs code: axios.get(store.urlBase + 'api...
asked by 20.08.2018 / 15:40
1
answer

Upload a local image within a Webview

I have a component WebView that loads a String HTML , the problem is that I can not load a local image inside this WebView . The image is inside the folder '../img/imagem.png' and when I put this "address" as source...
asked by 20.08.2018 / 14:27
1
answer

Passing information between components without ReactJS hierarchy

How to pass information between components in React as props or status. In this situation I have a button and a menu. The menu must be opened every time the button is clicked. Button import React, { Component } from 'react'; import './Na...
asked by 21.08.2018 / 12:50
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

Error creating application with create-react-app

I installed the create-react-app all right, but when you tried to create a project using the hello-world create-react-app command it gives the following error: C:\Users\j.santos.da.silva\Desktop\curso-angular>create-react-app hello-world...
asked by 12.06.2018 / 17:39
1
answer

Input does not allow typing

I have a page with some inputs, I'm using React so I have some components to help when I create the form Form Code: <div className="content novo"> <Alerta ref={(ref)=>this.alerta = ref} /> <Form id='testeForm' acti...
asked by 25.05.2018 / 16:52