Skip to content

Commit

Permalink
Add type annotations to render method of react components
Browse files Browse the repository at this point in the history
Summary:
This is part of enabling types-first mode in xplat/js ([context](https://fb.workplace.com/groups/rn.engineering/permalink/2293015867694617/)).

This diff adds `React.Node` as the return type of the `render` method of react components.

Differential Revision: D17137432

fbshipit-source-id: 415e902d87b6be5c26e4a0af3884a43a89c9be78
  • Loading branch information
logandaniels authored and facebook-github-bot committed Sep 4, 2019
1 parent 24de443 commit f0cc7fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ToggleAnimatingActivityIndicator extends Component<Props, State> {
}, 2000);
}

render() {
render(): Node {
return (
<ActivityIndicator
animating={this.state.animating}
Expand Down

0 comments on commit f0cc7fb

Please sign in to comment.