react-native-macos/Libraries/StyleSheet
Tim Yung 54a067e61e RN: Refactor `ScrollView` Style Splitting
Summary:
Rewrites `splitLayoutProps`, which is only used by `ScrollView`.

- Improve type safety by avoiding `DangerouslyImpreciseStyle`.
- Avoid allocating objects when it is not necessary.
- Avoid allocating a object enumeratig layout props by using a switch statement.

Changelog:
[Internal]

Reviewed By: JoshuaGross, kacieb

Differential Revision: D25097226

fbshipit-source-id: 2050c03b681024212c06a48b7eb05f28c14415f9
2020-11-19 15:55:23 -08:00
..
__flowtests__ Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
__tests__ RN: Refactor `ScrollView` Style Splitting 2020-11-19 15:55:23 -08:00
EdgeInsetsPropType.js Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
PlatformColorValueTypes.android.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
PlatformColorValueTypes.ios.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
PlatformColorValueTypesIOS.ios.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
PlatformColorValueTypesIOS.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
PointPropType.js Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
Rect.js Pressability: Support Rect or Numeric Size 2020-01-28 15:14:23 -08:00
StyleSheet.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
StyleSheetTypes.js RN: Preserve Style Type in `flattenStyle` 2020-11-19 15:55:23 -08:00
StyleSheetValidation.js Restore Previous Behavior for StyleSheet Validation of Null/Undefined Styles (#29171) 2020-06-25 15:31:54 -07:00
flattenStyle.js RN: Preserve Style Type in `flattenStyle` 2020-11-19 15:55:23 -08:00
normalizeColor.js Create `@react-native/normalize-color` package 2020-07-24 08:36:37 -07:00
processColor.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
processColorArray.js Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
processTransform.js Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
setNormalizedColorAlpha.js Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
splitLayoutProps.js RN: Refactor `ScrollView` Style Splitting 2020-11-19 15:55:23 -08:00