mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
"use strict";
|
|
|
|
import { createRunOncePlugin } from '@expo/config-plugins';
|
|
import { getPackageInfo } from "./getPackageInfo.js";
|
|
import { withAndroidExtensions } from "./withAndroidExtensions.js";
|
|
import { withAndroidPictureInPicture } from "./withAndroidPictureInPicture.js";
|
|
import { withBackgroundAudio } from "./withBackgroundAudio.js";
|
|
import { withAndroidNotificationControls } from "./withAndroidNotificationControls.js";
|
|
const withRNVideo = (config, props = {}) => {
|
|
if (props.enableAndroidPictureInPicture) {
|
|
config = withAndroidPictureInPicture(config, props.enableAndroidPictureInPicture);
|
|
}
|
|
if (props.androidExtensions != null) {
|
|
config = withAndroidExtensions(config, props.androidExtensions);
|
|
}
|
|
if (props.enableBackgroundAudio) {
|
|
config = withBackgroundAudio(config, props.enableBackgroundAudio);
|
|
}
|
|
config = withAndroidNotificationControls(config);
|
|
return config;
|
|
};
|
|
const {
|
|
name,
|
|
version
|
|
} = getPackageInfo();
|
|
export default createRunOncePlugin(withRNVideo, name, version);
|
|
//# sourceMappingURL=withReactNativeVideo.js.map
|