Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3341897
D7457.id25195.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.id25195.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
@@ -4,6 +4,7 @@
import { useNavigation } from '@react-navigation/native';
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';
@@ -76,6 +77,7 @@
}, []);
const navigation = useNavigation();
+ const insets = useSafeAreaInsets();
const { cancel, hideTooltip } = props;
const { showActionSheetWithOptions } = useActionSheet();
@@ -128,7 +130,7 @@
};
const containerStyle = {
- paddingBottom: 24,
+ paddingBottom: insets.bottom,
};
showActionSheetWithOptions(
{
@@ -143,6 +145,7 @@
}, [
hideTooltip,
maxOptionsToDisplay,
+ insets.bottom,
showActionSheetWithOptions,
visibleEntryIDsSet,
cancel,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 11:55 PM (14 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2566713
Default Alt Text
D7457.id25195.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