diff --git a/src/components/KeyboardToolbar/index.tsx b/src/components/KeyboardToolbar/index.tsx index 8ec18c31c7..d217a17928 100644 --- a/src/components/KeyboardToolbar/index.tsx +++ b/src/components/KeyboardToolbar/index.tsx @@ -99,11 +99,13 @@ const KeyboardToolbar: React.FC & { ); const containerStyle = useMemo( () => [ + // CRUCIAL: gives the native view real bounds + styles.sticky, KEYBOARD_HAS_ROUNDED_CORNERS - ? { - marginLeft: (insets?.left ?? 0) + 16, - marginRight: (insets?.right ?? 0) + 16, - } + ? ({ + left: (insets?.left ?? 0) + 16, + right: (insets?.right ?? 0) + 16, + } as const) : null, ], [insets], @@ -207,6 +209,13 @@ const KeyboardToolbar: React.FC & { }; const styles = StyleSheet.create({ + sticky: { + position: "absolute", + left: 0, + right: 0, + bottom: 0, + height: KEYBOARD_TOOLBAR_HEIGHT, + }, toolbar: { position: "absolute", bottom: 0,