Skip to main content

Draft Configuration on React Native

Drafts are enabled by default, asks the user to save a draft before leave any VideoEditor screen.

Usage

Specify instance of DraftsConfig in FeaturesConfig builder to change drafts configuration:

private featuresConfig = new FeaturesConfigBuilder()
.setDraftsConfig(DraftsConfig.fromOption({ option: DraftsOption.auto }))
...
.build();

Options

  • DraftsOption.askToSave - drafts enabled, asks the user to save a draft
  • DraftsOption.auto - drafts enabled, saved by default without asking the user
  • DraftsOption.closeOnSave - drafts enabled, asks the user to save a draft without export
  • DraftsOption.disable - disabled drafts