diff --git a/src/renderers/native/findNodeHandle.js b/src/renderers/native/findNodeHandle.js index 816885d301cb7..764c83728db67 100644 --- a/src/renderers/native/findNodeHandle.js +++ b/src/renderers/native/findNodeHandle.js @@ -64,7 +64,7 @@ function findNodeHandle(componentOrHandle: any): any { var owner = ((ReactCurrentOwner.current: any): ReactInstance | null); if (owner !== null) { warning( - owner._warnedAboutRefsInRender, + owner.stateNode._warnedAboutRefsInRender, '%s is accessing findNodeHandle inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + @@ -73,7 +73,7 @@ function findNodeHandle(componentOrHandle: any): any { getComponentName(owner) || 'A component', ); - owner._warnedAboutRefsInRender = true; + owner.stateNode._warnedAboutRefsInRender = true; } } if (componentOrHandle == null) {