mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add type annotations to render method of react components
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
This commit is contained in:
committed by
Facebook Github Bot
parent
24de443bac
commit
f0cc7fb666
@@ -42,7 +42,7 @@ class ToggleAnimatingActivityIndicator extends Component<Props, State> {
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
render() {
|
||||
render(): Node {
|
||||
return (
|
||||
<ActivityIndicator
|
||||
animating={this.state.animating}
|
||||
|
||||
Reference in New Issue
Block a user