Skip to content

Commit 2a9f40a

Browse files
committed
chore: add initial value to contentSizeProps
1 parent 38bc9e5 commit 2a9f40a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/uikit-react-native/src/components/FileViewer/FileViewerContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const ZoomableImageView = ({
9090
const { width, height } = useWindowDimensions();
9191

9292
const imageSize = useRef<{ width: number; height: number }>();
93-
const [contentSizeProps, setContentSizeProps] = useState<ReactNativeZoomableViewProps>({});
93+
const [contentSizeProps, setContentSizeProps] = useState<ReactNativeZoomableViewProps>({
94+
contentWidth: width,
95+
contentHeight: height,
96+
});
9497

9598
useLayoutEffect(() => {
9699
SBUUtils.safeRun(async () => {

0 commit comments

Comments
 (0)