This example demonstrates how to integrate the Video Editor React Native Plugin into an Expo project.
-
Set the Banuba license token within the app.
-
Install
node_modulesby running the following command in the terminal:npm install
-
Run the following command to build native parts:
npx expo prebuild --clean
-
Add required resources to iOS and Android modules according to the iOS documentation and Android doumentation.
Please, make sure all these resources are present in your project:-
Android:
- drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi are visual assets for color filter previews.
themes.xml includes implementation of VideoCreationTheme of Video Editor SDK - insert them here
android/app/src/main/res. - themes.xml includes implementation of VideoCreationTheme of Video Editor SDK - insert them here
android/app/src/main/res/values.
- drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi are visual assets for color filter previews.
themes.xml includes implementation of VideoCreationTheme of Video Editor SDK - insert them here
-
iOS:
- luts - the folder where all color effects are stored - insert them here
ios/vesdkexpo; - ColorEffectsPreview - preview images of color effects - insert them here
ios/vesdkexpo/Images.xcassets; - Effects Preview - preview images of visual effects - insert them here
ios/vesdkexpo/Images.xcassets; - Localized Strings - insert them here
ios/vesdkexpo/en.lprojand add it to Copy Bundle Resources of iOS project.
- luts - the folder where all color effects are stored - insert them here
❗ Important
Expo cleans up native modules after theprebuildphase. You'll need to repeat step 4 again. -
5. Run the project on the devices:
- Android
npx expo run:android - iOS
npx expo run:ios -
Run the command to intall Video Editor React Native Plugin:
npm install video-editor-react-native
-
Add Expo config plugin (Android Manifest + iOS Podfile) to the root of your project
-
Register the plugin in app.json (or app.config.js)
"expo": { "plugins": [ "./plugins/withVideoEditorNativeConfig", ... ] }
-
Add the necessary permissons for iOS.zable.strings)
-
Add Localization file and add it to Copy Bundle Resources of iOS project.