From 54ca571c88a80e161a536f8659075927754b1a77 Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Tue, 18 Jun 2024 14:18:40 -0700 Subject: [PATCH] Remove hack floating-nav hack in SceneWrapper --- src/components/common/SceneWrapper.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/common/SceneWrapper.tsx b/src/components/common/SceneWrapper.tsx index e8ebdd8cbee..1fee3bbcc4a 100644 --- a/src/components/common/SceneWrapper.tsx +++ b/src/components/common/SceneWrapper.tsx @@ -228,22 +228,6 @@ function SceneWrapperComponent(props: SceneWrapperProps): JSX.Element { } }) - /* - Hack to force `keyboardAwareStyle` to update from keyboard change during - scene transitions. As of react-native-reanimated v3.12.0, there is a bug - where if the keyboard is up before a scene transition starts (caused by - tapping the back button), then the `keyboardHeightDiff` value will change - but the style won't be applied to the scene based ont he keybaordHeightDiff. - There must be some race condition that occurs during the transition that - is resolvable by forcing the `keyboardHeightDiff` value to change after - the transition is complete. - */ - useFocusEffect(() => { - setTimeout(() => { - keyboardHeightDiff.value = keyboardHeightDiff.value + 0.000001 - }, 1) - }) - // If function children, the caller handles the insets and overscroll const memoizedChildren = useMemo(() => (typeof children === 'function' ? children(sceneWrapperInfo) : children), [children, sceneWrapperInfo])