Skip to content

Commit 586af8f

Browse files
fix type imports
1 parent befede6 commit 586af8f

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

docs/how-to/client/list-other-peers.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export function Component() {
5050
```tsx
5151
import React from "react";
5252
import { View, Text } from "react-native";
53-
import { usePeers, RTCView } from "@fishjam-cloud/react-native-client";
53+
import {
54+
usePeers,
55+
RTCView,
56+
type MediaStream,
57+
} from "@fishjam-cloud/react-native-client";
5458

5559
function VideoPlayer({ stream }: { stream: MediaStream | null }) {
5660
if (!stream) return <Text>No video</Text>;

docs/how-to/client/migration-guide.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ const localTrack = localPeer?.tracks.find((t) => t.type === "Video");
148148
```tsx
149149
import React from "react";
150150
// ---cut---
151-
import { usePeers, RTCView } from "@fishjam-cloud/react-native-client";
151+
import {
152+
usePeers,
153+
RTCView,
154+
type MediaStream,
155+
} from "@fishjam-cloud/react-native-client";
152156

153157
function VideoPlayer({ stream }: { stream: MediaStream | null | undefined }) {
154158
return (

docs/how-to/client/picture-in-picture.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ import {
308308
startPIP,
309309
stopPIP,
310310
usePeers,
311+
type MediaStream,
311312
} from "@fishjam-cloud/react-native-client";
312313

313314
function VideoPlayer({ stream }: { stream: MediaStream | null }) {

docs/tutorials/gemini-live-integration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ We provide a helper factory to initialize the Google Client.
7070

7171
```ts
7272
import { FishjamClient } from '@fishjam-cloud/js-server-sdk';
73-
import * as GeminiIntegration from '@fishjam-cloud/js-server-sdk/gemini';
73+
import GeminiIntegration from '@fishjam-cloud/js-server-sdk/gemini';
7474

7575
const fishjamClient = new FishjamClient({
7676
fishjamId: process.env.FISHJAM_ID!,

docs/tutorials/react-native-quick-start.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ Show video from other peers in the room:
255255
```tsx
256256
import React from "react";
257257
import { View, Text } from "react-native";
258-
import { usePeers, RTCView } from "@fishjam-cloud/react-native-client";
258+
import {
259+
usePeers,
260+
RTCView,
261+
type MediaStream,
262+
} from "@fishjam-cloud/react-native-client";
259263

260264
function VideoPlayer({ stream }: { stream: MediaStream | null | undefined }) {
261265
return (
@@ -305,6 +309,7 @@ import {
305309
useInitializeDevices,
306310
useSandbox,
307311
RTCView,
312+
type MediaStream,
308313
} from "@fishjam-cloud/react-native-client";
309314

310315
// Check https://fishjam.io/app/ for your Fishjam ID

0 commit comments

Comments
 (0)