Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lucas-Wanat opened this issue Mar 7, 2022 · 0 comments
Open

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

Lucas-Wanat opened this issue Mar 7, 2022 · 0 comments

Comments

@Lucas-Wanat
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant