@videosdk.live/expo-ios-screen-share
Version:
Expo config plugin for iOS screen sharing with VideoSDK
19 lines (18 loc) • 814 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("@expo/config-plugins");
const withIosBroadcastExtension_1 = __importDefault(require("./withIosBroadcastExtension"));
const withIosScreenCapture_1 = __importDefault(require("./withIosScreenCapture"));
const withIosScreenShare = (config, props) => {
if (!props?.appleTeamId) {
throw new Error('withIosScreenShare: appleTeamId is required');
}
return (0, config_plugins_1.withPlugins)(config, [
[withIosScreenCapture_1.default, props],
[withIosBroadcastExtension_1.default, props],
]);
};
exports.default = withIosScreenShare;