The Draftbit Developer Hub

Welcome to the Draftbit developer hub. You'll find comprehensive guides and documentation to help you start working with Draftbit as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Layout

Components used to build out the structure of your screen.

Keyboard Avoiding View

When configured, it will automatically adjust the position of the contents of the screen for a better fit when a user focuses on a field and the keyboard appears.

Configuration

🚧

Make sure to set the Flex Grow property of the Keyboard Avoiding View to 1

Parameter

Description

Enable

Enable the keyboard avoiding view

Resizing Behavior

Select how the screen will resize once the keyboard drawer opens.

Keyboard Vertical Offset

Set the distance between the top of the keyboard and the bottom of the screen's contents.

Resources

React Native Docs
Expo Docs

Divider

A basic line used to separate sections of content from each other.

Configuration

Parameter

Description

Color

Set the color of the divider

Height

Set the height/thickness of the divider

Container

A basic UI component similar to a View that can be styled and customized.

Configuration

Parameter

Description

Elevation

A number between 0 and 3 that controls the intensity of the drop shadow on the container.

Background image

Set an image as the background of the container.

Use gutter padding

Apply gutter padding (configurable in the theme's Spacing menu) to the right and left sides of the container. The default setting is 16pt. Set how to resize the container's background image when the image dimensions set in the builder don't match the actual dimensions of the image.

Background image resize mode

Set how to resize the container's background image when the image dimensions set in the builder don't match the actual dimensions of the image.

Blur View

A component that renders a native blur view on iOS and a semi-transparent view on Android.

Default, Light and Dark Blur Views

Configuration

📘

To use the Blur View, place whatever you want to be blurred above the Blur View as seen below

Additionally, set the Position of the Blur View to Absolute and Top: 0, Bottom: 0, Right: 0, Left: 0.

Parameter

Description

Tint

Select the type of tint to be applied to the blur view.

Intensity

A number between 1 and 100 that controls the how intense the blur is.

Resources

Expo

Scroll View

A basic container equipped with scrolling capabilities. If you are creating a list of Row, Card, or Field components, consider using a List component instead to increase your application's performance.

Configuration

Parameter

Description

Bounce

Enable so that the contents of the Scroll View bounce when the user reaches the end of the Scroll View

Horizontal

Enable to position the contents of the Scroll View into a row that will scroll horizontally.

Show Vertical Scroll Indicator

Enable to show a bar that shows the progress of scrolling through the Scroll View vertically

Show Horizontal Scroll Indicator

Enable to show a bar that shows the progress of scrolling through the Scroll View horizontally

Resources

React Native Docs
Expo Docs

Updated 2 months ago


Layout


Components used to build out the structure of your screen.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.