Skip to content

Commit 3bae496

Browse files
Merge pull request #98 from THEOplayer/bugfix/missing-export
Bugfix/missing export
2 parents 5ca3cac + fa744e3 commit 3bae496

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

.changeset/lucky-crews-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@theoplayer/react-native-ui': patch
3+
---
4+
5+
Fixed an issue where the `GoToLiveButton` was not available as an exported component.

example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
ControlBar,
1313
DEFAULT_THEOPLAYER_THEME,
1414
FullscreenButton,
15+
GoToLiveButton,
1516
LanguageMenuButton,
1617
type Locale,
1718
MuteButton,
@@ -30,7 +31,6 @@ import { PlayerConfiguration, PlayerEventType, TextTrackKind, THEOplayer, THEOpl
3031

3132
import { Platform, StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
3233
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
33-
import { GoToLiveButton } from '../src/ui/components/button/GoToLiveButton';
3434

3535
const playerConfig: PlayerConfiguration = {
3636
// Get your THEOplayer license from https://portal.theoplayer.com/

example/package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react-native-safe-area-context": "^5.6.1",
2020
"react-native-svg": "^15.11.2",
2121
"react-native-svg-web": "^1.0.9",
22-
"react-native-theoplayer": "^10",
22+
"react-native-theoplayer": "^10.3.0",
2323
"react-native-web": "^0.20.0",
2424
"react-native-web-image-loader": "^0.1.1"
2525
},

src/ui/THEOplayerDefaultUi.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
AdDisplay,
3232
AdCountdown,
3333
AdSkipButton,
34+
GoToLiveButton,
3435
} from '..';
3536

3637
export enum UIFeature {
@@ -147,6 +148,7 @@ export function THEOplayerDefaultUi(props: THEOplayerDefaultUiProps) {
147148
<ControlBar>{!excludedFeatures.includes(UIFeature.SeekBar) && <SeekBar />}</ControlBar>
148149
<ControlBar>
149150
{!excludedFeatures.includes(UIFeature.Mute) && <MuteButton />}
151+
<GoToLiveButton />
150152
<TimeLabel showDuration={true} />
151153
<Spacer />
152154
{bottomSlot}

src/ui/components/button/barrel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export * from './AirplayButton';
44
export * from './ChromecastButton';
55
export * from './ConditionalPlayButton';
66
export * from './FullscreenButton';
7+
export * from './GoToLiveButton';
78
export * from './MuteButton';
89
export * from './PipButton';
910
export * from './PlayButton';

0 commit comments

Comments
 (0)