(This is not installed automatically with Xcode. After installing the Android TV system image, create an Android TV emulator using that image (the process is the same as creating an Android phone emulator).Otherwise, choose the Intel x86_64 image). (For Apple silicon, choose the ARM 64 image. In the Android Studio SDK manager, select the dropdown for the Android SDK you are using (API version 31 or later), and make sure an Android TV system image is selected for installation. If you have an existing Expo project, the following walkthrough describes the steps required to modify an Expo project for TV. Integration with an existing Expo project The fastest way to generate a new project is described in the TV Example within the Expo examples repository. The splash screen ( SplashScreen.storyboard) is modified to work on tvOS.The Xcode project is modified to target tvOS instead of iOS.ios/Podfile is modified to target tvOS instead of iOS.MainApplication.kt is modified to remove unsupported Flipper invocations.The required intent for TV apps is added.The default phone portrait orientation is removed.Below is a list of changes made by the config plugins, which you can alternatively apply manually: The necessary changes to the native Android and iOS files are minimal and can be automated with a config plugin if you use prebuild. Using the React Native TV library as the react-native dependency in an Expo project, it becomes capable of targeting both mobile (Android, iOS) and TV (Android TV, Apple TV) devices. This technology extends beyond TV, offering a comprehensive core repo fork with support for phone and TV targets, including Hermes and Fabric. React Native is supported on Android TV and Apple TV through the React Native TV project. Not all Expo features and SDK modules are available on TV. TV development is available only in SDK 50 and later, and is still considered experimental.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |