Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Native

Components

Gravity Native comes packed with a full suite of pre-built components you can drop into your app. From icons to charts to forms, modals and notifications – building your app is almost too easy.

Importing Components

Gravity’s components are exported from a central component file, so you can import multiple components from one location in one statement.

import { AppContext, ViewContainer, Button } from '~/components/lib' 

The Native app configures Metro’s reporter in metro.config.js to filter require-cycle warnings during development. You can also import a component directly from its source file.