reactnative-visual
  • @dormakaba/digital-reactnative-visual
  • Getting started
  • Changelog
  • Components
    • Avatar
    • Button
    • Card
    • Checkbox / Radio
    • Icons
    • IconButton
    • Image Cropper
    • Page, Row, Col
    • List, ListItem
    • Modal
    • Notification
    • QR Code Reader
    • Select
    • Snack
    • Swipeable
    • Textfield
    • Typography: H1, P, Label, Hint, Text
  • Page Templates
    • Animated Login View
    • Login Area View
    • Animated Panel List
    • Animated Avatar View
  • Misc
    • Colors
    • VisualProvider
  • Show Cases
    • exivo
Powered by GitBook
On this page
  • Preview
  • Code
  • Props
  • Page
  • Row
  • Col
  1. Components

Page, Row, Col

PreviousImage CropperNextList, ListItem

Last updated 6 years ago

The layout component Page acts as the default container for a page (setting background color and padding). Row and Col enable flex layouts for devices having with > 600.

Preview

Code

import { Page, Row, Col, H1, P } from '@dormakaba/digital-reactnative-visual'

<Page>
  <Row>
    <Col>
      <Card>
        <H1>Typography H1</H1>
        <P>Lorem ipsum...</P>
        <P>Lorem ipsum...</P>
      </Card>
    </Col>
    <Col flex={2}>
      <Card>
        <H1>Typography H1</H1>
        <P>Lorem ipsum...</P>
        <P>Lorem ipsum...</P>
      </Card>
    </Col>
  </Row>
</Page>

Props

Page

Name

Type

Description

noScoll

boolean

use a regular View instead of a scrollview

styles

object

styles to override

Row

Name

Type

Description

Col

Name

Type

Description

flex

integer

flex size (relative size compared to other col 1 -> size 2 will be double of column 1, ...)

Ipad Air 2 - landscape