Page MenuHomePhabricator

[native] Remove tipHorizontalOffset from NUXTipsOverlay
ClosedPublic

Authored by angelika on Feb 25 2025, 3:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 5, 4:10 PM
Unknown Object (File)
Sat, Apr 5, 10:03 AM
Unknown Object (File)
Fri, Apr 4, 9:21 PM
Unknown Object (File)
Fri, Apr 4, 2:17 PM
Unknown Object (File)
Fri, Mar 21, 10:14 AM
Unknown Object (File)
Tue, Mar 18, 11:49 PM
Unknown Object (File)
Fri, Mar 14, 12:12 PM
Unknown Object (File)
Mar 9 2025, 4:37 AM
Subscribers

Details

Summary

tipHorizontalOffsetRef has a reanimated v1 value, but from reading the code I can deduce that this value is set and
not read anywhere. Therefore it can be removed.

Also onTipContainerLayout just sets tipHorizontalOffsetRef so it can also be removed.

Depends on D14410

Test Plan

flow, eslint, login to a new account and see that the tips at the beginning are working

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
angelika edited the summary of this revision. (Show Details)
angelika edited the summary of this revision. (Show Details)

Do we know what was the intention of this code and whether we have a corresponding logic in the Reanimated 2 code?

This revision is now accepted and ready to land.Feb 25 2025, 3:43 AM

Do we know what was the intention of this code and whether we have a corresponding logic in the Reanimated 2 code?

I guess this is just a leftover from migrating NUX tooltips from reanimated v1 to reanimated v2.

Was the NUX tooltips ever implemented in Reanimated v1? It's relatively new in our codebase

Was the NUX tooltips ever implemented in Reanimated v1? It's relatively new in our codebase

It looks to me it was: https://phab.comm.dev/D13071

This revision was landed with ongoing or failed builds.Mar 3 2025, 5:58 AM
This revision was automatically updated to reflect the committed changes.