Skip to content

Commit

Permalink
[Flow] Properly fix new errors as of Flow v0.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelevi committed Apr 27, 2015
1 parent dd56ccb commit b6e6dae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Examples/UIExplorer/ActivityIndicatorIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var ToggleAnimatingActivityIndicator = React.createClass({
}
});

exports.displayName = (undefined: ?string);
exports.framework = 'React';
exports.title = '<ActivityIndicatorIOS>';
exports.description = 'Animated loading indicators.';
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/UIExplorerList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* --flow disabled--
* @flow
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var TabBarItemIOS = React.createClass({
}
},

componentWillReceiveProps: function(nextProps: { selected: any /* workaround for flow bug */ }) {
componentWillReceiveProps: function(nextProps: { selected?: boolean }) {
if (this.state.hasBeenSelected || nextProps.selected) {
this.setState({hasBeenSelected: true});
}
Expand Down

0 comments on commit b6e6dae

Please sign in to comment.