Repository navigation
Pressto, not working in modal #602
|
I ran into a problem where the buttons from the Pressto library don't work in true-sheet. I found an issue where this issue had already been addressed #383 (there's an example). But they simply dismissed the pressto buttons as working with react-native pressable. Unfortunately, I have a large project, and everything relies on pressto, including many ready-made components. Is there a way to fix pressto so it works in true-modal? Thank you so much for the awesome library. It's very simple and straightforward. |
Answered by
jaka-kralj
Mar 25, 2026
Replies: 2 comments 2 replies
|
@GorbunovV you can probably ask that guy (or girl) for the patch that AI did for them. |
0 replies
|
I solved the issue by wrapping the insides of a TrueSheet with GestureHandlerRootView ( <ReanimatedTrueSheet
ref={ref}
detents={["auto", 0.7]}
backgroundColor={Colors[colorScheme].background2}
>
<GestureHandlerRootView style={{ flexGrow: 1 }}>
<View style={styles.sheetContainer}>
<Text>
You will be logged out of the app and need to login again to
continue.
</Text>
<View style={{ gap: Sizes.spacings.s4, flexDirection: "column" }}>
<ButtonCustom
style={{ width: "100%" }}
label="Log Out"
onPress={handleLogout}
variant="error"
colorScheme={colorScheme}
size="large"
buttonType="primary"
/>
<ButtonCustom
style={{ width: "100%" }}
label="Cancel"
onPress={handleCancel}
colorScheme={colorScheme}
variant="blackWhite"
size="large"
buttonType="textOnly"
/>
</View>
</View>
</GestureHandlerRootView>
</ReanimatedTrueSheet> |
2 replies
Answer selected by
lodev09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@GorbunovV
I solved the issue by wrapping the insides of a TrueSheet with GestureHandlerRootView (
react-native-gesture-handler) withstyle={{ flexGrow: 1 }}