Open nozbwang opened 4 years ago
***.js
...
import {XUpdate, InitArgs, UpdateArgs, UpdateEntity} from 'react-native-xupdate-new';
const errorListener = (error) => {
console.log(error);
};
export default class Setting extends Component {
constructor(props) {
super(props)
this.state = {
latest: true,
};
}
componentDidMount() {
this.checkVersion()
this.initXUpdate()
}
...
遇到一样问题。我是在ios模拟器上出现的。
yarn ios command fails on ios, while yarn android works well on android.
error message:
[Mon Oct 12 2020 14:29:17.242] ERROR Invariant Violation: Native module cannot be null. [Mon Oct 12 2020 14:29:17.243] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) [Mon Oct 12 2020 14:29:18.316] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
package.json