We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38bc9e5 commit 2a9f40aCopy full SHA for 2a9f40a
packages/uikit-react-native/src/components/FileViewer/FileViewerContent.tsx
@@ -90,7 +90,10 @@ const ZoomableImageView = ({
90
const { width, height } = useWindowDimensions();
91
92
const imageSize = useRef<{ width: number; height: number }>();
93
- const [contentSizeProps, setContentSizeProps] = useState<ReactNativeZoomableViewProps>({});
+ const [contentSizeProps, setContentSizeProps] = useState<ReactNativeZoomableViewProps>({
94
+ contentWidth: width,
95
+ contentHeight: height,
96
+ });
97
98
useLayoutEffect(() => {
99
SBUUtils.safeRun(async () => {
0 commit comments