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:
@@ -35,8 +35,8 @@
|
||||
"@react-native/metro-config": "^0.78.0",
|
||||
"@react-native/typescript-config": "0.73.1",
|
||||
"@rnx-kit/metro-config": "^2.0.0",
|
||||
"@types/react": "^18.2.6",
|
||||
"@types/react-test-renderer": "^18.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-test-renderer": "^19.0.0",
|
||||
"babel-jest": "^29.6.3",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^29.2.1",
|
||||
|
||||
@@ -21,7 +21,7 @@ export default function App() {
|
||||
'https://pbs.twimg.com/profile_images/1498641868397191170/6qW2XkuI_400x400.png',
|
||||
},
|
||||
}}
|
||||
style={[styles.fullScreen, StyleSheet.absoluteFillObject]}
|
||||
style={[styles.fullScreen, StyleSheet.absoluteFill]}
|
||||
controls
|
||||
fullscreen
|
||||
resizeMode={'contain'}
|
||||
|
||||
11
package.json
11
package.json
@@ -18,7 +18,7 @@
|
||||
"@react-native/eslint-config": "^0.72.2",
|
||||
"@release-it/conventional-changelog": "^7.0.2",
|
||||
"@types/jest": "^28.1.2",
|
||||
"@types/react": "~19.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-native-web": "^0.19.1",
|
||||
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
||||
"eslint": "^8.19.0",
|
||||
@@ -26,12 +26,13 @@
|
||||
"husky": "^9.1.7",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^2.4.1",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.78.2",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"react-native": "^0.78.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",
|
||||
"typescript": "5.1.6"
|
||||
"typescript": "5.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
||||
@@ -813,10 +813,10 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
}
|
||||
|
||||
// poster style
|
||||
const baseStyle: StyleProp<ImageStyle> = {
|
||||
...StyleSheet.absoluteFillObject,
|
||||
resizeMode: _posterResizeMode,
|
||||
};
|
||||
const baseStyle: StyleProp<ImageStyle> = [
|
||||
StyleSheet.absoluteFill,
|
||||
{resizeMode: _posterResizeMode},
|
||||
];
|
||||
|
||||
let posterStyle: StyleProp<ImageStyle> = baseStyle;
|
||||
|
||||
@@ -866,9 +866,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
]);
|
||||
|
||||
const _style: StyleProp<ViewStyle> = useMemo(
|
||||
() => ({
|
||||
...StyleSheet.absoluteFillObject,
|
||||
}),
|
||||
() => [StyleSheet.absoluteFill],
|
||||
[],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user