From 6fa99e10943e68e937cc3e9b8ea3d38d013ab4bd Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Mon, 1 Aug 2016 16:24:43 -0700 Subject: [PATCH] CR feedback --- CodePush.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CodePush.js b/CodePush.js index e626fa6..0e5071a 100644 --- a/CodePush.js +++ b/CodePush.js @@ -412,13 +412,14 @@ function codePushify(options = {}) { if (!React) { throw new Error("Unable to find the 'React' module."); } - if (!React.Component) { - throw new Error( -`Unable to find the 'Component' class, please either: + } + + if (!React.Component) { + throw new Error( +`Unable to find the "Component" class, please either: 1. Upgrade to a newer version of React Native that supports it, or -2. Call the codePush.sync API in your component instead of using the @CodePushify decorator` - ); - } +2. Call the codePush.sync API in your component instead of using the @codePush decorator` + ); } return class CodePushComponent extends React.Component {