fix: boot apple tv (working playing video)

This commit is contained in:
Fredrik Burmester
2025-11-15 18:10:16 +01:00
parent 01110b8d13
commit e1c69a9ec9
7 changed files with 75 additions and 15 deletions

View File

@@ -3,6 +3,16 @@
const isTV = process.env?.EXPO_TV === "1";
const disableForTV = (_moduleName) =>
isTV
? {
platforms: {
ios: null,
android: null,
},
}
: undefined;
module.exports = {
dependencies: {
"react-native-volume-manager": !isTV
@@ -16,5 +26,16 @@ module.exports = {
android: null,
},
},
"expo-notifications": disableForTV("expo-notifications"),
"react-native-image-colors": disableForTV("react-native-image-colors"),
"expo-sharing": disableForTV("expo-sharing"),
"expo-haptics": disableForTV("expo-haptics"),
"expo-brightness": disableForTV("expo-brightness"),
"expo-sensors": disableForTV("expo-sensors"),
"react-native-ios-context-menu": disableForTV(
"react-native-ios-context-menu",
),
"react-native-ios-utilities": disableForTV("react-native-ios-utilities"),
"react-native-pager-view": disableForTV("react-native-pager-view"),
},
};