Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3363538
D7457.id25199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7457.id25199.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7457: [native] add safe area insets for android action sheet
Attached
Detach File
Event Timeline
Log In to Comment