From b9a47062a614d24bfa5cfd3d550ae26c5c2773c3 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 29 May 2015 15:24:00 -0700 Subject: [PATCH] [ReactNative] Unbreak flow errors --- Libraries/Components/TextInput/TextInput.js | 2 +- Libraries/Text/Text.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 5d9f63d6b..03f374b67 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -407,7 +407,7 @@ var TextInput = React.createClass({ } }, - getChildContext: function() { + getChildContext: function(): Object { return {isInAParentText: true}; }, diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index 55b38907a..7ff16c5d9 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -179,7 +179,7 @@ var Text = React.createClass({ return PRESS_RECT_OFFSET; }, - getChildContext: function() { + getChildContext: function(): Object { return {isInAParentText: true}; },