mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
CR feedback
This commit is contained in:
13
CodePush.js
13
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 {
|
||||
|
||||
Reference in New Issue
Block a user