diff --git a/docs/next/stylesheet.html b/docs/next/stylesheet.html index d4e7633d8c1..57d557746fc 100644 --- a/docs/next/stylesheet.html +++ b/docs/next/stylesheet.html @@ -121,7 +121,7 @@ StyleSheet.f }); StyleSheet.flatten(styles.listItem); -// return { flex: 1, fontSize: 16, color: 'white' } +// returns { flex: 1, fontSize: 16, color: 'white' } // Simply styles.listItem would return its ID (number)

This method internally uses StyleSheetRegistry.getStyleByID(style) to resolve style objects represented by IDs. Thus, an array of style objects (instances of StyleSheet.create()), are individually resolved to, their respective objects, merged as one and then returned. This also explains the alternative use.

diff --git a/docs/next/stylesheet/index.html b/docs/next/stylesheet/index.html index d4e7633d8c1..57d557746fc 100644 --- a/docs/next/stylesheet/index.html +++ b/docs/next/stylesheet/index.html @@ -121,7 +121,7 @@ StyleSheet.f }); StyleSheet.flatten(styles.listItem); -// return { flex: 1, fontSize: 16, color: 'white' } +// returns { flex: 1, fontSize: 16, color: 'white' } // Simply styles.listItem would return its ID (number)

This method internally uses StyleSheetRegistry.getStyleByID(style) to resolve style objects represented by IDs. Thus, an array of style objects (instances of StyleSheet.create()), are individually resolved to, their respective objects, merged as one and then returned. This also explains the alternative use.