From 54e50332211c7495bee169dff27c74a4b43d5904 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 28 Jan 2016 20:13:32 -0800 Subject: [PATCH] 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 --- Libraries/ReactIOS/verifyPropTypes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/ReactIOS/verifyPropTypes.js b/Libraries/ReactIOS/verifyPropTypes.js index 1974716ba..07432eacb 100644 --- a/Libraries/ReactIOS/verifyPropTypes.js +++ b/Libraries/ReactIOS/verifyPropTypes.js @@ -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); } }