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    

Custom Screen Code

The Custom Screen Code feature allows you to store functions on a screen-by-screen basis. To access this feature, click Screen Settings (the gear icon on the right of the name of your App) and then click Custom Code in the left sidebar.

After you've saved a function, you can access it in the Actions tab of the Properties Panel by attaching it to any Button or Touchable.



Lifecycle Methods

componentDidMountInvoked immediately after the component has been mounted.
componentDidUpdateInvoked immediately after the component has been updated.
componentWillUnmountInvoked right before the component is unmounted and destroyed.


The name that will be referenced in code to call the function.


A brief explanation of the function's purpose / what the function does.


Packages from Expo that enable additional functionality on your screen.

Package NameDescription
expo-assetPackage that provides an interface to access Expo's asset system.
expo-avPackage that provides Audio.Sound objects and Video components for managing audio and video playback.
expo-cameraProvides a component to use the device's camera to take photos or record video.

*Must require CAMERA permissions for the camera and RECORD_AUDIO permissions to record video.
expo-barcode-scannerProvides a component to use the device's camera as a barcode scanner.

*Must require CAMERA permissions
expo-blurProvides a component that renders a native blur view on iOS and a semi-transparent view on Android. (see: Blur View)
expo-linear-gradientProvides a component that renders a linear gradient.
expo-permissionsPackage that handles asking the user for various device permissions
expo-sensorsProvides various APIs for accessing device sensors to measure motion, orientation, pressure, magnetic fields, and step count

Updated 5 months ago

Custom Screen Code

Suggested Edits are limited on API Reference Pages

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