This repository was archived by the owner on May 20, 2025. It is now read-only.

Description
- react-native-code-push version: 1.16.1-beta
- react-native version: 0.39.2
- iOS version: 10.1
Hi, I'm trying to integrate CodePush but having some trouble with the above error message when logging iOS. I'm running in the simulator, the iOS app builds fine with no errors.
I first noticed it when trying the usage code like this:
import React, { Component } from 'react';
const codePush = require('react-native-code-push');
import ContractorNavigator from './navigation/ContractorNavigator';
class App extends Component {
render() {
return (
<ContractorNavigator />
);
}
}
export default codePush(App);
but I was getting:
codePush is not a function. (In 'codePush(App)', 'codePush' is undefined)
I followed the Getting Started guide and used react-native link. I've since gone through the manual instructions to verify that everything was linked as it should have been and it looks fine to me.
Any help would be appreciated, thanks.