From f0cc7fb6662cd01cdce98bf1e224274596a43315 Mon Sep 17 00:00:00 2001 From: Logan Daniels Date: Tue, 3 Sep 2019 17:34:24 -0700 Subject: [PATCH] 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 --- .../js/examples/ActivityIndicator/ActivityIndicatorExample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNTester/js/examples/ActivityIndicator/ActivityIndicatorExample.js b/RNTester/js/examples/ActivityIndicator/ActivityIndicatorExample.js index b18ceb92934..19f4f4df21f 100644 --- a/RNTester/js/examples/ActivityIndicator/ActivityIndicatorExample.js +++ b/RNTester/js/examples/ActivityIndicator/ActivityIndicatorExample.js @@ -42,7 +42,7 @@ class ToggleAnimatingActivityIndicator extends Component { }, 2000); } - render() { + render(): Node { return (