Page MenuHomePhabricator

[native] Animate CalendarInputBar using Reanimated layout animation
ClosedPublic

Authored by ashoat on May 31 2024, 8:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 5:49 PM
Unknown Object (File)
Tue, Jun 25, 5:53 PM
Unknown Object (File)
Sat, Jun 22, 3:35 PM
Unknown Object (File)
Fri, Jun 14, 11:23 PM
Unknown Object (File)
Fri, Jun 14, 5:13 PM
Unknown Object (File)
Mon, Jun 10, 3:24 AM
Unknown Object (File)
Mon, Jun 10, 2:20 AM
Unknown Object (File)
Sun, Jun 9, 12:46 PM
Subscribers

Details

Summary

Nice and clean! Most of changes here are to update types.

Depends on D12256

Test Plan

Played around on my local simulator and confirmed that the animation works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/calendar/calendar-input-bar.react.js
18–21 ↗(On Diff #40807)

Noticed this wasn't memoized for some reason

native/flow-typed/npm/react-native-reanimated_v2.x.x.js
49–51 ↗(On Diff #40807)

I matched these to what we have in native/types/styles.js

370 ↗(On Diff #40807)

Noticed this wasn't read-only for some reason

This revision is now accepted and ready to land.Jun 3 2024, 1:37 AM

Noticed that we weren't wrapping BaseBuilderAnimationConfig with $ReadOnly, despite it including a spread of BaseLayoutAnimationConfig

Updated all types in the react-native-reanimated libdef that have spreads of other types to be wrapped with $ReadOnly