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 {