Skip to content

I can't insert the value of a variable in the table I made #108

@Lucas-Wanat

Description

@Lucas-Wanat
import React from 'react';
import { View, TextInput, Text } from 'react-native';
import { Col, Row, Grid } from 'react-native-easy-grid';
import { dadosCampo1 } from '../../Screens/Principal';
import { styles } from './styles'

export default function App() {

  const camp = dataCamp

  return (
    <View style={styles.container}>
      <Grid>
        <Col size={25}>
          <Row style={styles.cellTitle}>
            <Text>Camp</Text>
          </Row>
          <Row style={styles.cell}>
            <Text>{camp}</Text>
          </Row>
        </Col>
        <Col size={25}>
        <Row style={styles.cellTitle}>
            <Text>Campo 2</Text>
          </Row>
          <Row style={styles.cell}>
            <Text>F</Text>
          </Row>
        </Col>
        <Col size={26}>
        <Row style={styles.cellTitle}>
            <Text>Campo 3</Text>
          </Row>
          <Row style={styles.cell}>
            <Text>2</Text>
          </Row>
        </Col>
        <Col size={25}>
        <Row style={styles.cellTitle}>
            <Text>Campo 4</Text>
          </Row>
          <Row style={styles.cell}>
            <Text>2</Text>
          </Row>
        </Col>
      </Grid>
    </View>
  );
}
//If the language is strange it is because I am Brazilian and not fluent in English

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions