Page MenuHomePhabricator

D14110.id46470.diff
No OneTemporary

D14110.id46470.diff

diff --git a/native/tooltip/tooltip.react.js b/native/tooltip/tooltip.react.js
--- a/native/tooltip/tooltip.react.js
+++ b/native/tooltip/tooltip.react.js
@@ -172,10 +172,6 @@
class Tooltip extends React.PureComponent<
TooltipProps<BaseTooltipPropsType>,
> {
- componentDidMount() {
- Haptics.impactAsync();
- }
-
render(): React.Node {
const {
dimensions,
@@ -354,6 +350,10 @@
const { hideTooltip, ...rest } = props;
+ React.useEffect(() => {
+ Haptics.impactAsync();
+ }, []);
+
const { goBackOnce } = props.navigation;
const closeTooltip = React.useCallback(() => {
goBackOnce();

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 11:10 PM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682941
Default Alt Text
D14110.id46470.diff (664 B)

Event Timeline