Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3341899
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
Fri, Nov 22, 11:55 PM (15 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559327
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