Page MenuHomePhabricator

D7457.id25195.diff
No OneTemporary

D7457.id25195.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
@@ -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

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)

Event Timeline