Skip to content

Expose onUserAction via ref in UiContainer#102

Merged
tvanlaerhoven merged 2 commits intoTHEOplayer:mainfrom
QuintonWehby:expose-onUserAction-as-ref
Jan 26, 2026
Merged

Expose onUserAction via ref in UiContainer#102
tvanlaerhoven merged 2 commits intoTHEOplayer:mainfrom
QuintonWehby:expose-onUserAction-as-ref

Conversation

@QuintonWehby
Copy link
Contributor

Summary

Exposes onUserAction() via a ref in UiContainer, enabling parent components to programmatically trigger the UI fade-in animation.

Use Case

Currently, triggering UI visibility requires PlayerContext, forcing parent components to be nested within UiContainer. This change allows external logic (such as keyboard shortcuts) to control the UI state without strict component nesting.

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: 225caef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@theoplayer/react-native-ui Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tvanlaerhoven tvanlaerhoven self-requested a review January 16, 2026 15:07
@tvanlaerhoven tvanlaerhoven added the enhancement New feature or request label Jan 16, 2026
Copy link
Member

@tvanlaerhoven tvanlaerhoven left a comment

Choose a reason for hiding this comment

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

Thanks @QuintonWehby !

@tvanlaerhoven tvanlaerhoven force-pushed the expose-onUserAction-as-ref branch from 094fdca to 225caef Compare January 26, 2026 09:57
@tvanlaerhoven tvanlaerhoven merged commit ab3829f into THEOplayer:main Jan 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants