Page MenuHomePhabricator

D7457.id25199.diff
No OneTemporary

D7457.id25199.diff

diff --git a/native/tooltip/tooltip-context.react.js b/native/tooltip/tooltip-context.react.js
--- a/native/tooltip/tooltip-context.react.js
+++ b/native/tooltip/tooltip-context.react.js
@@ -3,6 +3,7 @@
import { useActionSheet } from '@expo/react-native-action-sheet';
import * as React from 'react';
import { Platform, StyleSheet } from 'react-native';
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
import type { TooltipItemBaseProps } from './tooltip-item.react.js';
@@ -74,6 +75,8 @@
optionsRef.current = optionsRef.current.filter(option => option.id !== id);
}, []);
+ const insets = useSafeAreaInsets();
+
const { cancel, hideTooltip } = props;
const { showActionSheetWithOptions } = useActionSheet();
const showActionSheet = React.useCallback(() => {
@@ -125,7 +128,7 @@
};
const containerStyle = {
- paddingBottom: 24,
+ paddingBottom: insets.bottom,
};
showActionSheetWithOptions(
{
@@ -140,9 +143,10 @@
}, [
hideTooltip,
maxOptionsToDisplay,
+ insets.bottom,
+ showActionSheetWithOptions,
visibleEntryIDsSet,
cancel,
- showActionSheetWithOptions,
]);
const shouldShowMore = React.useCallback(() => {

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 2:28 AM (6 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582095
Default Alt Text
D7457.id25199.diff (1 KB)

Event Timeline