More helpful description for native-js prop mismatch
Summary: Similar as https://github.com/facebook/react-native/pull/5605 Closes https://github.com/facebook/react-native/pull/5673 Reviewed By: svcscm Differential Revision: D2908218 Pulled By: nicklockwood fb-gh-sync-id: da5e42ea660df2c0bb60165c7429d480414a0a20
This commit is contained in:
parent
97b8a57bdb
commit
375abc3f06
|
@ -448,7 +448,10 @@ SEL RCTParseMethodSignature(NSString *methodSignature, NSArray<RCTMethodArgument
|
|||
expectedCount -= 2;
|
||||
}
|
||||
|
||||
RCTLogError(@"%@.%@ was called with %zd arguments, but expects %zd",
|
||||
RCTLogError(@"%@.%@ was called with %zd arguments, but expects %zd. \
|
||||
If you haven\'t changed this method yourself, this usually means that \
|
||||
your versions of the native code and JavaScript code are out of sync. \
|
||||
Updating both should make this error go away.",
|
||||
RCTBridgeModuleNameForClass(_moduleClass), _JSMethodName,
|
||||
actualCount, expectedCount);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue