@livekit/react-native-expo-plugin
v1.0.0
Published
Expo Plugin for LiveKit React Native SDK
Downloads
6,209
Readme
Expo Plugin for LiveKit React Native SDK
This plugin handles the setup required for Expo projects to use the LiveKit React Native SDK.
Installation for managed Expo projects
npx expo install @livekit/react-native @livekit/react-native-expo-plugin
@config-plugins/react-native-webrtc is also highly suggested to be installed alongside this plugin.
Configure app.json
After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:
{
"expo": {
"plugins": ["@livekit/react-native-expo-plugin"]
}
}
This plugin optionally takes in an object to customize the configuration:
{
"expo": {
"plugins": [
[
"@livekit/react-native-expo-plugin",
{
"android": {
"audioType": <"media" or "communication"> (defaults to "communication")
}
}
]
]
}
}
Installation in React Native projects
Config plugins are not supported in React Native projects. Read the installation guide on the React Native SDK to see how to setup in a React Native project.