Replies: 5 comments
-
It looks like Would you mind quickly try to specify If it still doesn't resolve the problem, then I'll try to clone your repo and see what happens there! |
Beta Was this translation helpful? Give feedback.
-
Hi @kirillzyusko, Here I added the Screen.Recording.2025-02-01.at.10.57.53.PM.movMy issue mainly is that I want the formsheet to appear over the keyboard but I dont know why it happens when I disable the module but also more weirdly why only the second time I disable the module. Clearly disabling the module still does something which produces the expected behavior. |
Beta Was this translation helpful? Give feedback.
-
Oh, yeah, I see now @itsramiel what are you talking about I'll look into your issue! |
Beta Was this translation helpful? Give feedback.
-
is a solution was found for this one? |
Beta Was this translation helpful? Give feedback.
-
Screenrecorder-2025-05-31-20-43-26-876.mp4✅ I faced the same issue where the To fix it, I used ✅ Working setup<RootStack.Screen
name="SimpleCalculatorScreen"
component={SimpleCalculatorScreen}
options={() => ({
presentation: 'formSheet',
contentStyle: { backgroundColor: 'transparent' },
sheetElevation: 0,
headerShown: false,
sheetCornerRadius: 20,
sheetAllowedDetents: [1],
})}
/> 💡 Inside the screen componentimport { KeyboardStickyView } from 'react-native-keyboard-controller';
return (
<Box className="flex-1 justify-end">
<KeyboardStickyView>
<Box className="rounded-t-3xl bg-white">
{/* content */}
</Box>
</KeyboardStickyView>
</Box>
); With this setup, the sheet behaves correctly: it floats above the keyboard and maintains a smooth experience on both Android. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to understand the behaviour of something I am encountering. I have a screen which uses the presentation
formsheet
fromreact-native-screens
v4 andreact-navigation
v7 which has a text input.The code looks like this:
The behaviour so far is(iOS seems to have the formsheet above the keyboard while on Android the keyboard covers the input):
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-31.at.12.33.48.mp4
Screen.Recording.2025-01-31.at.12.34.18.PM.mov
Now If I wrap the app with the
KeyboardNavigator
like so:Then I still get the same behaviour as shown in the previous screen recording.
Weird Part
Now if I add the following code to the HomeScreen(not FormSheetScreen), which enables the lib on focus and disables it on blur:
then the SECOND time I navigate to the formsheet screen, the formsheet becomes above the keyboard.
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-31.at.12.52.55.mp4
Screen.Recording.2025-01-31.at.12.52.07.PM.mov
My question
Why did the formsheet appear on top of the keyboard but only the second time I disabled the library? Note that the desired behavior is to have the formsheet appear on top of the keyboard but I dont understand why it happened when I disabled the library. Also why only on the second disabling?
Beta Was this translation helpful? Give feedback.
All reactions