Skip to content

[tvOS / Android TV] Support for tvOS / Android TV #30

@Vashiru

Description

@Vashiru

Is your feature request related to a problem? Please describe.
I'm working on a new Apple TV / Android TV app. The currently library is not compatible with tvOS out of the box. I will be honest that I'm currently in the early phases of this app exploring viability and support for react-native-tvos seems to be rather limited across the eco-system. So it might happen that I don't get to actually building the app, but still wanted to share the idea and my changes.

Describe the solution you'd like
Support for tvOS / Android TV through https://github.com/react-native-tvos/react-native-tvos. Under the hood tvOS / Android TV are mostly compatible with iOS and Android respectivally.

Additional context
I've managed to get this working on AppleTV with the help of AI. Specifically I've updated the platforms specification to s.platforms = { :ios => "12.0", :tvos => "12.0" } and had to disable VibrancyView as some of it's features are not supported by tvOS (tested on version 26, gave compile errors). I've included the patch file with all of my changes for Apple TV. I've not tested on Android TV yet.

Specifically I got these errors regarding VibrancyView:

error 'UIVibrancyEffectStyleLabel' is unavailable: not available on tvOS
error 'effectForBlurEffect:style:' is unavailable: not available on tvOS

After disabling VibrancyView for TVOS, it seems the blur effect is working properly (don't mind my layout, it's been a lot of copy pasting from another app just to get a proof of concept working):

Image

Patch file:
@danielsaraldi+react-native-blur-view+1.3.1.patch

Metadata

Metadata

Assignees

Labels

android TVAndroid TV onlydocumentationImprovements or additions to documentationenhancementNew feature or requesttvOStvOS only

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions