mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
More helpful description for native-js prop mismatch
Summary: A lot of people see this error and end up posting in our support group. The root cause is that their js and native versions are out of sync. Adding a helpful description here will unblock them on their own. Closes https://github.com/facebook/react-native/pull/5605 Reviewed By: svcscm Differential Revision: D2878376 Pulled By: martinbigio fb-gh-sync-id: 10dedbdbb4bee3fce5119367223ebb42a3c1b6a4
This commit is contained in:
parent
1154f2a371
commit
54e5033221
@ -50,6 +50,9 @@ function verifyPropTypes(
|
||||
viewConfig.uiViewClassName + '.' + prop + '` of native type `' +
|
||||
nativeProps[prop] + '`';
|
||||
};
|
||||
message += '\nIf you haven\'t changed this prop 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.';
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user