fix: replace absoluteFillObject with absoluteFill (#4880)

* Update for 0.85

* fix formatting

* Delete bun.lock

* chore: update deps

* chore: update `absoluteFillObject` in tv example

---------

Co-authored-by: Joar Karlsson <joar.karlsson@carnegie.se>
Co-authored-by: Kamil Moskała <91079590+moskalakamil@users.noreply.github.com>
Co-authored-by: Kamil Moskała <moskalakamil07@gmail.com>
This commit is contained in:
Joar Karlsson
2026-04-28 14:23:41 +02:00
committed by GitHub
parent cd72fc1f28
commit ae7ff4fa07
4 changed files with 14 additions and 15 deletions

View File

@@ -35,8 +35,8 @@
"@react-native/metro-config": "^0.78.0", "@react-native/metro-config": "^0.78.0",
"@react-native/typescript-config": "0.73.1", "@react-native/typescript-config": "0.73.1",
"@rnx-kit/metro-config": "^2.0.0", "@rnx-kit/metro-config": "^2.0.0",
"@types/react": "^18.2.6", "@types/react": "^19.0.0",
"@types/react-test-renderer": "^18.0.0", "@types/react-test-renderer": "^19.0.0",
"babel-jest": "^29.6.3", "babel-jest": "^29.6.3",
"eslint": "^8.19.0", "eslint": "^8.19.0",
"jest": "^29.2.1", "jest": "^29.2.1",

View File

@@ -21,7 +21,7 @@ export default function App() {
'https://pbs.twimg.com/profile_images/1498641868397191170/6qW2XkuI_400x400.png', 'https://pbs.twimg.com/profile_images/1498641868397191170/6qW2XkuI_400x400.png',
}, },
}} }}
style={[styles.fullScreen, StyleSheet.absoluteFillObject]} style={[styles.fullScreen, StyleSheet.absoluteFill]}
controls controls
fullscreen fullscreen
resizeMode={'contain'} resizeMode={'contain'}

View File

@@ -18,7 +18,7 @@
"@react-native/eslint-config": "^0.72.2", "@react-native/eslint-config": "^0.72.2",
"@release-it/conventional-changelog": "^7.0.2", "@release-it/conventional-changelog": "^7.0.2",
"@types/jest": "^28.1.2", "@types/jest": "^28.1.2",
"@types/react": "~19.0.0", "@types/react": "^19.0.0",
"@types/react-native-web": "^0.19.1", "@types/react-native-web": "^0.19.1",
"@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/eslint-plugin": "^6.7.4",
"eslint": "^8.19.0", "eslint": "^8.19.0",
@@ -26,12 +26,13 @@
"husky": "^9.1.7", "husky": "^9.1.7",
"jest": "^29.7.0", "jest": "^29.7.0",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"react": "18.2.0", "react": "19.0.0",
"react-native": "0.78.2", "react-dom": "19.0.0",
"react-native": "^0.78.0",
"react-native-web": "0.20.0", "react-native-web": "0.20.0",
"react-native-windows": "^0.61.0-0", "react-native-windows": "^0.78.0",
"release-it": "^16.2.1", "release-it": "^16.2.1",
"typescript": "5.1.6" "typescript": "5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"react": "*", "react": "*",

View File

@@ -813,10 +813,10 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
} }
// poster style // poster style
const baseStyle: StyleProp<ImageStyle> = { const baseStyle: StyleProp<ImageStyle> = [
...StyleSheet.absoluteFillObject, StyleSheet.absoluteFill,
resizeMode: _posterResizeMode, {resizeMode: _posterResizeMode},
}; ];
let posterStyle: StyleProp<ImageStyle> = baseStyle; let posterStyle: StyleProp<ImageStyle> = baseStyle;
@@ -866,9 +866,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
]); ]);
const _style: StyleProp<ViewStyle> = useMemo( const _style: StyleProp<ViewStyle> = useMemo(
() => ({ () => [StyleSheet.absoluteFill],
...StyleSheet.absoluteFillObject,
}),
[], [],
); );