Custom Packages allow you to add third-party libraries to your app.
Imported libraries must be compatible with React Native and the Expo managed workflow
You can find several compatible libraries here.
First, navigate to the Packages tab in the Custom Code modal.
Click the "+" icon to add a new package.
Then, enter your Package Name in the first input field and it's Version in the second input field.
In most cases, you will want the latest version of your package.
If you want a specific version, be sure to specify in the version input, with or without npm ~, ^, or >= syntax.
To remove a package, click the '-' button at the end of the row where the package is listed.
The following are common packages in the Expo SDK that are not yet part of the Draftbit platform. We've made these available by default for use in Custom Functions.
Examples for how to add these to your Draftbit app in custom code are here.
|expo-asset||Package that provides an interface to access Expo's asset system.|
|expo-av||Package that provides |
|expo-clipboard||Provides an interface for getting and setting Clipboard content on Android, and iOS.|
|expo-constants||Provides system information that remains constant throughout the lifetime of an app's install.|
|expo-camera||Provides a component to use the device's camera to take photos or record video.|
|expo-barcode-scanner||Provides a component to use the device's camera as a barcode scanner.|
|expo-permissions||Package that handles asking the user for various device permissions.|
|expo-image-picker||Package that provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.|
|expo-sensors||Provides various APIs for accessing device sensors to measure motion, orientation, pressure, magnetic fields, and step count.|
|expo-sharing||Package that allows sharing files directly with other compatible applications.|
|expo-sms||Package that provides access to the system's UI/app for sending SMS messages.|
|Async Storage||Provides an asynchronous, unencrypted, persistent, key-value storage solution|
|RN Alert||Launches an alert dialog with the specified title and message.|
|RN Appearance||Package that exposes information about the user's appearance preferences, such as their preferred color scheme (light or dark).|
|RN Dimensions||Package that updates |
|RN Keyboard||Package that provides methods to control keyboard events.|
|RN Platform||Package that provides a module to detect the platform (iOS or Android) in which the app is running. Platform specific tasks are handled using it.|
|RN Vibration||Package that contains the method to trigger a vibration with a fixed duration. The duration here is specified in milliseconds.|
Updated about a month ago