Skip to content

Commit

Permalink
Rename sample as well
Browse files Browse the repository at this point in the history
  • Loading branch information
123mpozzi committed Nov 6, 2024
1 parent 72f68f1 commit b97c8c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import LandscapeFullscreenHandling from './screens/LandscapeFullscreenHandling';
import SystemUI from './screens/SystemUi';
import OfflinePlayback from './screens/OfflinePlayback';
import Casting from './screens/Casting';
import LockScreenControls from './screens/LockScreenControls';
import MediaControls from './screens/MediaControls';
import BackgroundPlayback from './screens/BackgroundPlayback';

export type RootStackParamsList = {
Expand Down Expand Up @@ -60,7 +60,7 @@ export type RootStackParamsList = {
};
Casting: undefined;
SystemUI: undefined;
LockScreenControls: undefined;
MediaControls: undefined;
BackgroundPlayback: undefined;
};

Expand Down Expand Up @@ -114,8 +114,8 @@ export default function App() {
routeName: 'ProgrammaticTrackSelection' as keyof RootStackParamsList,
},
{
title: 'Lock-Screen Controls',
routeName: 'LockScreenControls' as keyof RootStackParamsList,
title: 'Media Controls',
routeName: 'MediaControls' as keyof RootStackParamsList,
},
{
title: 'Background Playback',
Expand Down Expand Up @@ -275,9 +275,9 @@ export default function App() {
/>
)}
<RootStack.Screen
name="LockScreenControls"
component={LockScreenControls}
options={{ title: 'Lock-Screen Controls' }}
name="MediaControls"
component={MediaControls}
options={{ title: 'Media Controls' }}
/>
<RootStack.Screen
name="BackgroundPlayback"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ function prettyPrint(header: string, obj: any) {
console.log(header, JSON.stringify(obj, null, 2));
}

export default function LockScreenControls() {
export default function MediaControls() {
useTVGestures();

const player = usePlayer({
nativeId: '123',
mediaControlConfig: {
isEnabled: true,
},
Expand Down

0 comments on commit b97c8c1

Please sign in to comment.