Page MenuHomePhabricator

[native] Fix broken StyleProps type for react-native-reanimated libdef
ClosedPublic

Authored by ashoat on Aug 20 2024, 9:58 AM.
Tags
None
Referenced Files
F2770585: D13124.diff
Thu, Sep 19, 8:56 PM
Unknown Object (File)
Sat, Sep 14, 9:41 PM
Unknown Object (File)
Mon, Sep 9, 10:22 AM
Unknown Object (File)
Sat, Sep 7, 12:42 PM
Unknown Object (File)
Wed, Sep 4, 11:05 AM
Unknown Object (File)
Sun, Sep 1, 12:17 PM
Unknown Object (File)
Sun, Sep 1, 11:01 AM
Unknown Object (File)
Fri, Aug 30, 2:15 PM
Subscribers
None

Details

Summary

This issue was first introduced in D5556, and led to a $FlowFixMe being introduced in D13066.

It's not possible to spread a non-object. I remove the spreads here because the only relevant part of the union is the object form ({ [name: string]: any, ... }), which is already included in the StyleProps type anyways.

This diff addresses part of ENG-9039.

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/flow
Lint
No Lint Coverage
Unit
No Test Coverage