I have the following components:
Obj
import React from 'react';
export default class Obj extends React.Component {
constructor(props) {
super(props);
console.log(props);
}
render() {
let objs = Object.e...
I have an app that should be tested on an Android emulator. After setting to the React Native and Android environment (Including the environment variable). I can not run my app on the Android emulator.
Message spoof:
I'm using windows 1...
I have the following function create dynamic array.
funcListMap(_ref) {
let list = [];
_ref.map((i) => {
list.push(
<ListItem key={i.id}>
<h1>{i.id}</h1>
<span>{i.descricao}</sp...
Good morning, could anyone help me with react-native ??? The codes below and my doubts are below
componentDidMount() {
return fetch('http://portal.ema.net.br/api/getprocedimentospublicos', {
method: 'POST',
})
.then(response => response.jso...
I'm trying to return a list of a "Plan" Template which has a list of "Expenses", returning only the list of plan works, but when I add to return the list of expenses of an error in javascript.
"Failed to load resource: net :: ERR_SPDY_PROTOCOL...
Hello, I'm new to React Native and I'm having trouble getting the status of a reducer for a component I made. it is as follows:
import React from 'react'
import { connect } from 'react-redux'
import { View, Text } from 'react-native'
class Fo...
How do I get a state from a child component?
In my example I have Shell.js which is the parent component:
class Shell extends Component {
render() {
return (
<div>
<Nav propsdaNav={1} />
<Superm...
Each time I click a button, I want to add +1 min to the timer.
<Button
onPress={this.somarUmMinuto}
title="Somar 1 minuto"
color="#007FFF"
accessibilityLabel="Somar 1 minuto"
/>
Code used to set the countdown:
inicia...
The idea is to create a component for each input type, for example, InputPassword to <input type="password"> , but for code reuse, most of these components have an equal base, all have <div> as container, have a...
Hello!
In order to reuse a function I'm doing the following:
View 1 has this object:
obj: [
{"fruta": "maça", "valor1":1},
{"fruta": "banana", "valor1":1},
{"fruta": "pera", "valor1":1}
]
View 2 has this object:
obj: [
{...