Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit d51103b

Browse files
committed
add check if use ios simulator
1 parent 5183127 commit d51103b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example/ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1410,4 +1410,4 @@ SPEC CHECKSUMS:
14101410

14111411
PODFILE CHECKSUM: 8daa796ed34dbeeeb2b648d198968b27b4c2ae8d
14121412

1413-
COCOAPODS: 1.13.0
1413+
COCOAPODS: 1.15.2

example/screens/RoomScreen.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { useJoinRoom } from '../hooks/useJoinRoom';
2121
import { useToggleCamera } from '../hooks/useToggleCamera';
2222
import { useToggleMicrophone } from '../hooks/useToggleMicrophone';
2323
import { usePreventBackButton } from '../hooks/usePreventBackButton';
24+
import { isIosSimulator } from '../utils/deviceUtils';
2425

2526
type Props = NativeStackScreenProps<AppRootStackParamList, 'Room'>;
2627
const {
@@ -89,7 +90,7 @@ const RoomScreen = ({ navigation, route }: Props) => {
8990

9091
return (
9192
<SafeAreaView style={styles.container}>
92-
{tracks.length > 0 ? (
93+
{tracks.length > 0 && !isIosSimulator ? (
9394
<VideosGrid tracks={tracks} />
9495
) : (
9596
<NoCameraView

0 commit comments

Comments
 (0)