Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/replace slider #39

Merged
merged 18 commits into from
Jan 21, 2025
Merged

Feature/replace slider #39

merged 18 commits into from
Jan 21, 2025

Conversation

tvanlaerhoven
Copy link
Member

@tvanlaerhoven tvanlaerhoven commented Jan 20, 2025

Drop dependency on @react-native-community/slider and replace with @miblanchard/react-native-slider, which is commonly-used a slider implementation in react-native without any native dependencies, available on all platforms (including tvOS).

Also fix the slider crash for live streams passing NaN or Infinite values.

* @group Hooks
*/
export const useCurrentTime = () => {
const player = useContext(PlayerContext).player;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit-pick:

Suggested change
const player = useContext(PlayerContext).player;
const { player } = useContext(PlayerContext);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also replaced this with destructuring assignment in the other hooks.

@tvanlaerhoven tvanlaerhoven merged commit 1e77ee6 into develop Jan 21, 2025
1 check passed
@tvanlaerhoven tvanlaerhoven deleted the feature/replace_slider branch January 21, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants