Skip to content

Commit

Permalink
Fix warning message for new setNativeProps method. on -> with (#14909)
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite authored Feb 21, 2019
1 parent b0f45c0 commit f978d5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function setNativeProps(handle: any, nativeProps: Object): void {
if (handle._nativeTag == null) {
warningWithoutStack(
handle._nativeTag != null,
"setNativeProps was called on a ref that isn't a " +
"setNativeProps was called with a ref that isn't a " +
'native component. Use React.forwardRef to get access to the underlying native component',
);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ describe('ReactFabric', () => {
ReactFabric.setNativeProps(viewRef, {foo: 'baz'});
}).toWarnDev(
[
"Warning: setNativeProps was called on a ref that isn't a " +
"Warning: setNativeProps was called with a ref that isn't a " +
'native component. Use React.forwardRef to get access ' +
'to the underlying native component',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ describe('ReactNative', () => {
ReactNative.setNativeProps(viewRef, {foo: 'baz'});
}).toWarnDev(
[
"Warning: setNativeProps was called on a ref that isn't a " +
"Warning: setNativeProps was called with a ref that isn't a " +
'native component. Use React.forwardRef to get access ' +
'to the underlying native component',
],
Expand Down

0 comments on commit f978d5f

Please sign in to comment.