diff --git a/packages/react-native-ui-lib/src/commons/withScrollEnabler.tsx b/packages/react-native-ui-lib/src/commons/withScrollEnabler.tsx index 251f6adbb9..f9c8ab426f 100644 --- a/packages/react-native-ui-lib/src/commons/withScrollEnabler.tsx +++ b/packages/react-native-ui-lib/src/commons/withScrollEnabler.tsx @@ -26,10 +26,8 @@ function withScrollEnabler(WrappedComponent: React.Componen const checkScroll = useCallback(() => { const isScrollEnabled = Math.floor(contentSize.current) > layoutSize.current; - if (isScrollEnabled !== scrollEnabled) { - setScrollEnabled(isScrollEnabled); - } - }, [scrollEnabled]); + setScrollEnabled(isScrollEnabled); + }, []); const onContentSizeChange = useCallback((contentWidth: number, contentHeight: number) => { const size = props.horizontal ? contentWidth : contentHeight;