React Native SDK for Amazon IVS Real-Time (Stages). Join a stage, watch or publish camera and microphone, and render video with Fabric native views.
Requires React Native New Architecture (TurboModules + Fabric). Peer dependencies: react >= 18.2.0, react-native >= 0.81.0.
yarn add amazon-ivs-react-native-sdk
# or: npm install amazon-ivs-react-native-sdk- Set
RCT_NEW_ARCH_ENABLED=1(ornewArchEnabled=truein Gradle for Android). - Add the vendored IVS Broadcast pod to your Podfile (AWS no longer publishes Stages versions > 1.38 via CocoaPods trunk):
pod 'AmazonIVSBroadcastStages', :podspec => '../node_modules/amazon-ivs-react-native-sdk/vendor/AmazonIVSBroadcastStages.podspec'
- Run
pod install.
See docs/getting-started.md for Info.plist keys and platform versions (iOS 14.0+, Android minSdk 28).
Ensure newArchEnabled=true in gradle.properties. The library declares CAMERA, RECORD_AUDIO, and MODIFY_AUDIO_SETTINGS; your app must also declare runtime permissions you use.
import { IVSLocalPreviewView, IVSParticipantVideoView, IVSStageProvider, useLocalMedia, useParticipants, useStage, } from 'amazon-ivs-react-native-sdk'; function Room() { const { connectionState, join, leave } = useStage(); const participants = useParticipants(); const { publishEnabled, setPublishEnabled } = useLocalMedia(); const remotes = participants.filter((p) => !p.isLocal); if (connectionState === 'disconnected') { return ( <Button title="Join" onPress={() => join(PARTICIPANT_TOKEN, { publish: false })} /> ); } return ( <> {publishEnabled ? ( <IVSLocalPreviewView style={{ flex: 1 }} /> ) : null} {remotes.map((p) => ( <IVSParticipantVideoView key={p.participantId} participantId={p.participantId} style={{ height: 200 }} /> ))} <Button title={publishEnabled ? 'Stop live' : 'Go live'} onPress={() => setPublishEnabled(!publishEnabled)} /> <Button title="Leave" onPress={() => leave()} /> </> ); } export default function App() { return ( <IVSStageProvider subscribe="audio-video"> <Room /> </IVSStageProvider> ); }
Mint a participant token with the included CLI — see docs/tokens.md.
Meet-style Demo: home → pre-join preview → call. See example/README.md.
yarn install cp example/src/stage.config.example.ts example/src/stage.config.ts # paste a token into stage.config.ts yarn example ios # or: yarn example android
| Doc | Description |
|---|---|
| Getting started | Platform setup, permissions, pod line |
| Tokens | AWS stages, participant tokens, CLI |
| Architecture | Four layers and boundary rules |
| API reference | TSDoc / exported surface |
| Audio | Presets, routing, defaults |
| Adding a feature | Contributor checklist |
| Upgrading native SDK | Bump AAR + podspec together |
| Release checklist | Manual two-platform pass |
| Troubleshooting | Emulator, preview, pod install |
| Contributing | Dev workflow |
| ADRs | Architecture decision records |
MIT — see LICENSE.