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}; },