Posts by Henrique Hermes • 343 points
17 posts
-
0
votes1
answer853
viewsQ: Typescript with React-navigation
I have a doubt in typing the prop Navigation of a functional component, my code is currently like this: import React from 'react'; import { Container, Button, ButtonText } from './styles'; import {…
-
0
votes1
answer237
viewsQ: React Native Maps - CSS HELP
I’m trying to get an icon under the mapview in my project, so: But now it’s like this: Code: <View style={styles.viewMaps}> {this.state.ready && this.state.region &&…
-
0
votes1
answer502
viewsQ: React Native Maps
I am trying to implement the React-Native-maps library in my project, when running React-Native run-android I get this error in CMD: * Where: Build file 'C:\Users\Henrique\Documents\New…
-
0
votes1
answer97
viewsQ: Help positioning icone/view under image
would like to take a doubt of CSS/HTML,I will start a project in REACT NATIVE, and in the project I came across this layout objective: My doubt is, how can I put the icone (STAR) under the…
-
0
votes0
answers28
viewsQ: Doubt in function setState
I wonder why use and working when we use setState, in a few moments I see examples like this below: this.setState({ edit: { ...this.state.edit } }); Why does it use the three points (...) before…
-
0
votes0
answers52
viewsQ: How to access a tag element
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:…
-
0
votes3
answers156
viewsQ: Condition in a select
I need to create a SELECT which contain only records of a value x onwards. For example, return only movies with number of copies greater than 5 My Select router.get('/filmes', (req, res) =>{…
-
0
votes1
answer320
viewsQ: Error while executing POST method
I am facing a problem regarding the POST method, when triggering this method it normally inserts in the database, but the application (Node index.js) is finished, at the command prompt I get this…
-
1
votes1
answer66
viewsQ: Webpack Reactjs
I am facing problems with my webpack, I get in the terminal this following error: you may need an appropriate Loader to Handle this file type webpack.config.js: var path = require('path'); var…
-
0
votes1
answer190
viewsQ: Round up JSON value
In my code, I receive a JSON with a value (Example: 6647), and I would like to round it to just 1 decimal place. In the code, I take Json’s content by the call: render(){ return( <div…
-
3
votes1
answer764
viewsQ: Add Scroll Bar to a Box
I am doubtful in my code, in it I will add a chat field, and in this chat the box should have a maximum size, and if in the case when adding the messages exceeds this value, it should create a…
-
2
votes1
answer4588
viewsQ: How to take something from an input text and pass by reference?
How do I pick up something that I typed in an input text, and when I press a "Send" button, I send that text somewhere in my code, like how we use 'this.state.algumaCoisa'... Follow the code:…
-
1
votes1
answer1133
viewsQ: IF-Else Reactjs Json condition
In the code developed in Reacjs below, it returns from a field containing a "displayPortraitLeft" key with values ranging from true to false, and depending on the value (true/false) obtained, I…
-
2
votes1
answer1640
viewsQ: Picking up parts of a JSON vector
I am doubtful about the GET function of my JS (React JS) code, I have the GET function using the Fetch api, it returns the values a certain link.json containing an array. Using this link as an…
-
3
votes1
answer626
viewsQ: How to pass a JSON object to another function?
In the 'componentDidMount' function of REACT I get the json of a link in question, but in the 'render' I cannot pass these objects because the object is in a '.then' in the first function. How can I…
reactasked Henrique Hermes 343 -
4
votes2
answers880
viewsQ: Adjustments to the React.JS CSS
I’m developing a simple system in React and I’m having difficulties in the visual part, for example for mobile: I need to leave my system this way: Is that way: The web system needs to be like this:…
-
4
votes2
answers434
viewsQ: Javascript - React JS
How do I take a part of a JSON, put it in a variable and then throw that variable in a "Widget" of my layout? Example: (http://ip.jsontest.com/) I want to take the value of "ip", and put in my…