Skip to content

Commit

Permalink
Fixes #10443 (#10448)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxfactorial authored and acdlite committed Aug 12, 2017
1 parent abc0efa commit 2cd0ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/native/findNodeHandle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var ReactInstanceMap = require('ReactInstanceMap');
var ReactNativeFeatureFlags = require('ReactNativeFeatureFlags');
var ReactNativeFiberRenderer = require('ReactNativeFiberRenderer');
var {ReactCurrentOwner} = require('ReactGlobalSharedState');

var getComponentName = require('getComponentName');
var invariant = require('fbjs/lib/invariant');

if (__DEV__) {
Expand Down Expand Up @@ -76,7 +76,7 @@ function findNodeHandle(componentOrHandle: any): any {
'never access something that requires stale data from the previous ' +
'render, such as refs. Move this logic to componentDidMount and ' +
'componentDidUpdate instead.',
owner.getName() || 'A component',
getComponentName(owner) || 'A component',
);

owner._warnedAboutRefsInRender = true;
Expand Down

0 comments on commit 2cd0ecd

Please sign in to comment.