@appzung/react-native-code-push v11.0.3
@appzung/react-native-code-push / withCodePush
withCodePush<
P>(component):ComponentType
Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted.
Internally, the higher-order component calls sync inside its componentDidMount lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you.
P extends object | Record<string, unknown>
ComponentType<P>
the React Component that will be decorated
ComponentType
withCodePush<
P>(options): (component) =>ComponentType
Wraps a React component inside a "higher order" React component that knows how to synchronize your app's JavaScript bundle and image assets when it is mounted.
Internally, the higher-order component calls sync inside its componentDidMount lifecycle handle, which in turns performs an update check, downloads the update if it exists and installs the update for you.
P extends object | Record<string, unknown>
Options used to configure the end-user sync and update experience (e.g. when to check for updates?, show a prompt?, install the update immediately?).
Function
ComponentType<P>
ComponentType