@videosdk.live/expo-ios-screen-share
Version:
Expo config plugin for iOS screen sharing with VideoSDK
45 lines (33 loc) • 1.03 kB
Markdown
Enable iOS screen sharing in your Expo (React Native) app using a native broadcast upload extension powered by ReplayKit. This plugin simplifies the setup process by configuring the required native modules during the Expo prebuild step.
## Installation
Install the plugin via npm:
```
npm install @videsdk.live/expo-ios-screen-share
```
## Usage
Add the plugin to your `app.json` file under plugins section as shown below:
```
{
"expo": {
"plugins": [
[
"@videosdk.live/expo-ios-screen-share",
{
"appleTeamId": "YOUR_APPLE_TEAM_ID",
"extensionName": "YOUR_BROADCAST_EXTENSION_NAME"
}
]
]
}
}
```
```
npx expo prebuild
```
- Adds a Broadcast Upload Extension target
- Configures AppGroup, Entitlements, and Info.plist
- Automatically links the extension with your main app target
- Reduces manual native code changes during ReplayKit setup