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
Unknown Object (File)
Fri, Dec 20, 9:34 AM
Unknown Object (File)
Wed, Dec 18, 6:15 PM
Unknown Object (File)
Dec 6 2024, 1:05 AM
Unknown Object (File)
Nov 30 2024, 12:03 AM
Unknown Object (File)
Nov 29 2024, 11:05 PM
Unknown Object (File)
Nov 26 2024, 5:35 PM
Unknown Object (File)
Nov 8 2024, 2:09 AM
Unknown Object (File)
Nov 8 2024, 2:09 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable