From e2fc7d23628ab8162ae02e35a434dabb13b18968 Mon Sep 17 00:00:00 2001 From: Jan Monschke Date: Mon, 15 Jun 2015 13:27:20 -0700 Subject: [PATCH] Sort StyleProps alphabetically Summary: Sorting the StyleProps alphabetically makes it easier to scan through the list of available props e.g. in case of typos. Filled out the FB CLA form just now. Related to #1605 Closes https://github.com/facebook/react-native/pull/1607 Github Author: Jan Monschke Test Plan: Imported from GitHub, without a `Test Plan:` line. --- Libraries/StyleSheet/StyleSheetValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/StyleSheet/StyleSheetValidation.js b/Libraries/StyleSheet/StyleSheetValidation.js index c4875222d..be59b2ec5 100644 --- a/Libraries/StyleSheet/StyleSheetValidation.js +++ b/Libraries/StyleSheet/StyleSheetValidation.js @@ -26,7 +26,7 @@ class StyleSheetValidation { if (allStylePropTypes[prop] === undefined) { var message1 = '"' + prop + '" is not a valid style property.'; var message2 = '\nValid style props: ' + - JSON.stringify(Object.keys(allStylePropTypes), null, ' '); + JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' '); styleError(message1, style, caller, message2); } var error = allStylePropTypes[prop](