GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WebRTCventures/amazon-ivs-react-native-sdk: Open-source React Native SDK for Amazon IVS Real-Time, with example app and commercial support for extra features, security, optimization, and SLA.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github/workflows
.github/workflows
 
 
.yarn/releases
.yarn/releases
 
 
android
android
 
 
docs
docs
 
 
example
example
 
 
ios
ios
 
 
scripts
scripts
 
 
src
src
 
 
vendor
vendor
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.watchmanconfig
.watchmanconfig
 
 
.yarnrc.yml
.yarnrc.yml
 
 
AmazonIvsRealTime.podspec
AmazonIvsRealTime.podspec
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
eslint.config.mjs
eslint.config.mjs
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
react-native.config.js
react-native.config.js
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 
turbo.json
turbo.json
 
 
typedoc.json
typedoc.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

amazon-ivs-react-native-sdk

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.

Install

yarn add amazon-ivs-react-native-sdk
# or: npm install amazon-ivs-react-native-sdk

iOS

  1. Set RCT_NEW_ARCH_ENABLED=1 (or newArchEnabled=true in Gradle for Android).
  2. 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'
  1. Run pod install.

See docs/getting-started.md for Info.plist keys and platform versions (iOS 14.0+, Android minSdk 28).

Android

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.

60-second quickstart

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.

Example app

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

Documentation

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

License

MIT — see LICENSE.

About

Open-source React Native SDK for Amazon IVS Real-Time, with example app and commercial support for extra features, security, optimization, and SLA.

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.