Index of every page on this site: llms.txt
All skills
software-mansion-labs avatar

/react-native-client

@43cde80
Run it yourself

React Native / Expo SDK for Fishjam — video/audio streaming on iOS and Android. Use when writing a React Native or Expo app that calls Fishjam, configures the Fishjam Expo plugin, sets up permissions, runs background streaming, integrates CallKit, or renders RTCView. Trigger on: '@fishjam-cloud/react-native-client', 'fishjam expo plugin', 'FishjamProvider mobile', 'useCameraPermissions', 'useMicrophonePermissions', 'useForegroundService', 'useCallKit', 'useCallKitEvent', 'useCallKitService', 'RTCView', 'RTCPIPView', 'ScreenCapturePickerView', 'startPIP', 'stopPIP', 'AudioDeviceType', 'useAudioOutput', '@fishjam-cloud/react-native-webrtc', 'fishjam react native', 'expo fishjam', 'fishjam ios', 'fishjam android', 'broadcast extension'. Re-exports @fishjam-cloud/react-client hooks plus mobile-only: permissions, foreground service, iOS broadcast extension, audio routing, CallKit, Expo config plugin.

  • 11 files
  • 54.9 KB
  • MIT
  • Updated 6 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/react-native-client

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

example-projects.md

≈932 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Example Projects

Runnable Expo apps demonstrating the mobile client SDK. All live in the fishjam-cloud/examples repo under mobile-react-native/.

Use these as reference implementations. Copy the parts you need (app.json plugin config, hook usage patterns, navigation skeleton) — don't try to run the whole tree if you only want one feature.

minimal-react-native/

Smallest possible Fishjam React Native app. Token input box, join/leave button, local + remote video tiles. Good for:

  • Verifying your install / Expo plugin config works.
  • Seeing the bare-minimum hook set: FishjamProvider, useConnection, useCamera, useMicrophone, usePeers.
  • Confirming RTCView rendering for local and remote peers.

Start here if you've never built a Fishjam app before.

fishjam-chat/

Full video-chat app with Expo Router, real navigation, screen share, CallKit integration, foreground service, and runtime Fishjam ID swap. Demonstrates:

  • Permission flow via useCameraPermissions / useMicrophonePermissions.
  • Foreground service for backgrounded streaming.
  • Screen share on both Android and iOS (with the broadcast extension setup in app.json).
  • CallKit (useCallKit, useCallKitService) integration for treating sessions as native phone calls on iOS.
  • Picture-in-Picture via RTCView's pip prop.
  • Multi-screen navigation (lobby → call → leave).
  • Dynamic Fishjam ID swap (switch between dev/staging/prod instances at runtime).

This is the production-flavor example. Read its app.json for the canonical Expo plugin configuration.

blur-example/

Tiny app focused on the camera middleware pattern — applies a background blur effect using a native processing library and exposes a toggle. Demonstrates:

  • setCameraTrackMiddleware lifecycle.
  • Performance considerations (frame-rate cost of GPU processing).

Use as a starting template for any custom video effect (LUTs, virtual backgrounds, filters).

text-chat/

Demonstrates useDataChannel — peer-to-peer text messaging without any media. Useful for:

  • Understanding the data-channel lifecycle (initializeDataChannel → wait for dataChannelReady → publish/subscribe).
  • Building chat alongside a call.
  • Seeing how DataChannelOptions map to RTC reliability modes.

video-player/

Livestream streamer + viewer combo. Three-mode UI ('streamer' | 'viewer' | 'none') — connects to a livestream room either as the broadcaster or as a WHEP viewer. Demonstrates:

  • useLivestreamStreamer for the broadcasting side (single peer).
  • useLivestreamViewer().connect({ token }) for private livestreams.
  • useLivestreamViewer().connect({ streamId }) for public livestreams.
  • RTCView for WHEP playback.
  • Disconnect / reconnect flow.

Pair with web-react/livestreaming/ for cross-platform tests.

Running the examples

# clone the examples repo:
git clone https://github.com/fishjam-cloud/examples
cd examples/mobile-react-native/minimal-react-native

yarn install
npx expo prebuild --clean
npx expo run:ios       # or :android

You'll need an EXPO_PUBLIC_FISHJAM_ID (and optionally EXPO_PUBLIC_FISHJAM_SANDBOX_API_URL for the no-backend flow) — the examples read these from environment variables defined per-app.

Sources

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 6 months ago

README badge

README badge for software-mansion-labs/skills/react-native-client