CR feedback

This commit is contained in:
Geoffrey Goh
2016-08-01 16:24:43 -07:00
parent 4326515f28
commit 6fa99e1094

View File

@@ -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 {