diff --git a/Examples/UIExplorer/js/CameraRollView.js b/Examples/UIExplorer/js/CameraRollView.js index 238f00dc5..8bb9fbd2b 100644 --- a/Examples/UIExplorer/js/CameraRollView.js +++ b/Examples/UIExplorer/js/CameraRollView.js @@ -198,7 +198,7 @@ var CameraRollView = React.createClass({ _renderFooterSpinner: function() { if (!this.state.noMore) { - return ; + return ; } return null; }, diff --git a/Examples/UIExplorer/js/ImageExample.js b/Examples/UIExplorer/js/ImageExample.js index 1e6c6de19..34418ea67 100644 --- a/Examples/UIExplorer/js/ImageExample.js +++ b/Examples/UIExplorer/js/ImageExample.js @@ -165,7 +165,7 @@ var MultipleSourcesExample = React.createClass({ }, render: function() { return ( - + Container image size: {this.state.width}x{this.state.height} + style={{height: this.state.height, width: this.state.width}} > ); diff --git a/Examples/UIExplorer/js/WebViewExample.js b/Examples/UIExplorer/js/WebViewExample.js index d41ea15a1..6f1066701 100644 --- a/Examples/UIExplorer/js/WebViewExample.js +++ b/Examples/UIExplorer/js/WebViewExample.js @@ -178,8 +178,8 @@ var Button = React.createClass({ render: function() { return ( - - {this.props.text} + + {this.props.text} ); diff --git a/Examples/UIExplorer/js/XHRExample.ios.js b/Examples/UIExplorer/js/XHRExample.ios.js index 5c49d96d0..053bad559 100644 --- a/Examples/UIExplorer/js/XHRExample.ios.js +++ b/Examples/UIExplorer/js/XHRExample.ios.js @@ -379,7 +379,7 @@ class FormUploader extends React.Component { } return ( - + Random photo from your library ( diff --git a/Libraries/StyleSheet/StyleSheet.js b/Libraries/StyleSheet/StyleSheet.js index 28ee3fae5..c9eab42c4 100644 --- a/Libraries/StyleSheet/StyleSheet.js +++ b/Libraries/StyleSheet/StyleSheet.js @@ -160,8 +160,8 @@ module.exports = { /** * Creates a StyleSheet style reference from the given object. */ - create(obj: {[key: string]: any}): {[key: string]: number} { - var result = {}; + create(obj: T): {[key:$Keys]: number} { + var result: T = (({}: any): T); for (var key in obj) { StyleSheetValidation.validateStyle(key, obj); result[key] = ReactNativePropRegistry.register(obj[key]);