Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

React Native Error when I put Col inside of Row #12

@gwenf

Description

@gwenf

I'm importing your library:
import {Row, Col} from 'react-native-flexbox-grid';

But when I try to nest a column inside a Row like this (or with multiple columns):

<Row>
  <Col sm={5}>
      <Text>
        First Column
      </Text>
    </Col>
</Row>

I get an error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got undefined.

It only works if I use Row by itself.

I'm using react-native version: 0.44.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions