Questions tagged as 'react'

1
answer

React Native application using Firebase

Hello, I'm creating an application using React Native, and trying to integrate with Firebase, I found a starter project application, which already has the integration ready, only needing to add google-services.json to the root directory of...
asked by 26.06.2018 / 03:19
1
answer

Update in mongoDB is deleting the rest of the document

I have a Structured Collection like this: { "_id": i43h21n5lk2354, "createdAt" : ISODate("2018-08-19T16:56:31.555Z"), "services" : { "facebook" : { .... name: "Michael Jackson" .......
asked by 19.08.2018 / 19:07
1
answer

React Input Mask how to put the ninth digit?

I downloaded the package npm i react-text-mask --save I made the import in my Contact file but by default it goes out like this (55) 5555-5555 I'm having trouble putting this pattern 5555-5555 Could anyone give me a hint how to do this? My...
asked by 18.05.2018 / 21:51
1
answer

I can not delete warnings from ESLint

I'm learning react-native, I've never had a lot of experience with JavaScript, I've installed the ESLint extension, and I'm trying to follow the script for the best syntax. But there are two warnings that I could not remove and I can not unde...
asked by 25.08.2017 / 19:34
1
answer

How to display an element from a true or false within the Object? Javascript ReactJs

I have an array of objects, and I want to display value from its status which is an attribute within the object. this.state = { objetcs: [{ value: 1, status: false }, { value: 2, status: true }]...
asked by 13.06.2018 / 21:41
1
answer

Problems passing props to state of React component

Problems passing props to the state of the component, when in the component I make console.log(this) the props client is there with all fields, but when I do console.log(this.props) it shows me the empty state. this.state.clien...
asked by 23.09.2017 / 01:41
1
answer

Error changing checkbox state in Reactjs

I'm learning React still in the state part of a component. My activity is simple: when clicking the checkbox the status of the CHECKED component should change to true and change the value of a text message. The problem is that when I click I get...
asked by 01.02.2018 / 15:29
1
answer

Error in class constructor in React

I get the following error when I try to use the component this way. client?cd17:119 ./src/App/Components/AddNote.js Module build failed: SyntaxError: super() outside of class constructor (9:4) 7 | const FormText = React.createClass(...
asked by 30.03.2017 / 15:17
1
answer

React-native error after installing lib react-native-router-flux

After installing the react-native-router-flux lib in my app this error appeared in: I've done the procedure to remove the folder     
asked by 04.05.2017 / 20:54
1
answer

Riding .eslintrc, how to write?

I got a project with this eslint: { "extends": [ "keystone" ], "rules": { "no-unused-vars": [2, {"vars": "all", "args": "after-used"}], }, } Another one with this eslint here { "parser": "babel-eslint", "plugins": [...
asked by 21.11.2016 / 19:54