From 5cdd141636d940ed881efbf67d66583135fba8d3 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Mon, 11 Jun 2018 19:47:27 -0700 Subject: [PATCH] Flow: textShadownOffest needs to be stricter Summary: `width` and `height` are required for this style prop, for the sake of consistency (and Fabric). Callsites should set one of them to 0 instead of not specifying it. Reviewed By: TheSavior, shergin Differential Revision: D8371064 fbshipit-source-id: b0ffd6b6543ac5456a3708382966e7b3df241f7e --- Libraries/StyleSheet/StyleSheetTypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/StyleSheet/StyleSheetTypes.js b/Libraries/StyleSheet/StyleSheetTypes.js index cf385bb7d..8fb8edd7b 100644 --- a/Libraries/StyleSheet/StyleSheetTypes.js +++ b/Libraries/StyleSheet/StyleSheetTypes.js @@ -185,8 +185,8 @@ export type ____TextStyle_Internal = $ReadOnly<{| | 'proportional-nums', >, textShadowOffset?: $ReadOnly<{| - width?: number, - height?: number, + width: number, + height: number, |}>, textShadowRadius?: number, textShadowColor?: ColorValue,