Skip to content

Commit c839ccf

Browse files
committed
fix prettier
1 parent 53f9a6d commit c839ccf

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/components/Modal/BaseModal.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,19 @@ function BaseModal(
223223
const {paddingTop} = StyleUtils.getPlatformSafeAreaPadding(insets);
224224
const availableHeight = windowHeight - modalHeight - keyboardStateContextValue.keyboardActiveHeight - paddingTop;
225225
setModalOverlapsWithTopSafeArea((keyboardStateContextValue.isKeyboardAnimatingRef.current || keyboardStateContextValue.isKeyboardActive) && Math.floor(availableHeight) <= 0);
226-
}, [StyleUtils, insets, keyboardStateContextValue.isKeyboardActive, keyboardStateContextValue.isKeyboardAnimatingRef, keyboardStateContextValue.keyboardActiveHeight, modalHeight, type, windowHeight, modalOverlapsWithTopSafeArea, canUseTouchScreen, isSmallScreenWidth]);
226+
}, [
227+
StyleUtils,
228+
insets,
229+
keyboardStateContextValue.isKeyboardActive,
230+
keyboardStateContextValue.isKeyboardAnimatingRef,
231+
keyboardStateContextValue.keyboardActiveHeight,
232+
modalHeight,
233+
type,
234+
windowHeight,
235+
modalOverlapsWithTopSafeArea,
236+
canUseTouchScreen,
237+
isSmallScreenWidth,
238+
]);
227239

228240
const onViewLayout = (e: LayoutChangeEvent) => {
229241
setModalHeight(e.nativeEvent.layout.height);

0 commit comments

Comments
 (0)