diff --git a/src/utils/use-dimensions.ts b/src/utils/use-dimensions.ts index fa79671b..d4228392 100644 --- a/src/utils/use-dimensions.ts +++ b/src/utils/use-dimensions.ts @@ -7,7 +7,14 @@ export const useDimensions = (): ScaledSize => { const [dimensions, setDimensions] = React.useState(Dimensions.get('window')); const onChange = ({ window }: { window: ScaledSize }): void => { - setDimensions(window); + if ( + dimensions.width !== window.width || + dimensions.height !== window.height || + dimensions.scale !== window.scale || + dimensions.fontScale !== window.fontScale + ) { + setDimensions(window); + } }; React.useEffect(() => {