Skip to content

Provide defaults if Fullstory module doesn't exist#143

Open
RyanCommits wants to merge 2 commits intomasterfrom
ryanwang/VAL-9938-tvOS
Open

Provide defaults if Fullstory module doesn't exist#143
RyanCommits wants to merge 2 commits intomasterfrom
ryanwang/VAL-9938-tvOS

Conversation

@RyanCommits
Copy link
Contributor

@RyanCommits RyanCommits commented Jan 27, 2026

VAL-9938

Fullstory React Native methods will not be available on iOS TV so we'll need to provide defaults.

Copy link
Contributor

@martin-fs martin-fs left a comment

Choose a reason for hiding this comment

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

Is there a way to add a warning log if we fall back to the stubs? Probably not needed but just in case something triggers that fallback by accident.

// Shared wrapper for components without refs (most common case)
function sharedRefWrapper(element: FSNativeElement | null) {
if (element && isTurboModuleEnabled && Platform.OS === 'ios') {
if (element && isTurboModuleEnabled && Platform.OS === 'ios' && !Platform.isTV) {
Copy link
Contributor

Choose a reason for hiding this comment

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

tvOS shouldn't be iOS (Apple treats them as separate platforms), but I guess it is because the issue implies that it is.

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.

2 participants