diff --git a/examples/video-player/App.tsx b/examples/video-player/App.tsx index 4787ae1f..70036ec5 100644 --- a/examples/video-player/App.tsx +++ b/examples/video-player/App.tsx @@ -1,12 +1,40 @@ -import { StyleSheet, View } from 'react-native'; -import FishjamPlayer from './components/FishjamPlayer'; - -const roomName = 'test'; +import { StyleSheet, TextInput, View, Button } from 'react-native'; +import FishjamPlayerViewer from './components/FishjamPlayerViewer'; +import FishjamPlayerStreamer from './components/FishjamPlayerStreamer'; +import { useState } from 'react'; const App = () => { + const [roomName, setRoomName] = useState('test-room'); + const [selection, setSelection] = useState<'streamer' | 'viewer' | 'none'>( + 'none', + ); + return ( - - + + {selection === 'none' && ( + <> + +