Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fxfactorial committed Aug 12, 2017
1 parent abc0efa commit 2c0b47b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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)
);

owner._warnedAboutRefsInRender = true;
Expand Down Expand Up @@ -111,12 +111,12 @@ function findNodeHandle(componentOrHandle: any): any {
'findNodeHandle(...): Argument is not a component ' +
'(type: %s, keys: %s)',
typeof component,
Object.keys(component),
Object.keys(component)
);
invariant(
false,
'findNodeHandle(...): Unable to find node handle for unmounted ' +
'component.',
'component.'
);
}
}
Expand Down

0 comments on commit 2c0b47b

Please sign in to comment.