UNPKG

react-native-whip-whep

Version:

An implementation of WHIP and WHEP protocols functionalities for React Native.

41 lines (40 loc) 1.24 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const withWhipWhepIos_1 = __importDefault(require("./withWhipWhepIos")); const withWhipWhepAndroid_1 = require("./withWhipWhepAndroid"); /** * Main WHIP/WHEP Expo config plugin. * * This plugin configures both iOS and Android platforms for: * - Screen sharing (iOS and Android) * - Picture-in-Picture support * * Usage in app.json/app.config.js: * { * "plugins": [ * [ * "react-native-whip-whep", * { * "ios": { * "enableScreensharing": true, * "supportsPictureInPicture": true, * "appGroupContainerId": "group.com.example.myapp" // optional * }, * "android": { * "enableScreensharing": true, * "supportsPictureInPicture": true * } * } * ] * ] * } */ const withWhipWhep = (config, options) => { config = (0, withWhipWhepIos_1.default)(config, options); config = (0, withWhipWhepAndroid_1.withWhipWhepAndroid)(config, options); return config; }; exports.default = withWhipWhep;