Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3507345
D14110.id46407.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
664 B
Referenced Files
None
Subscribers
None
D14110.id46407.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 8:22 PM (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682941
Default Alt Text
D14110.id46407.diff (664 B)
Attached To
Mode
D14110: [native] Move haptics in Tooltip to functional compononent
Attached
Detach File
Event Timeline
Log In to Comment