Skip to content

Commit ae34b9a

Browse files
committed
Revert "docs: add updateChecker option"
This reverts commit b9f4659.
1 parent 02d0796 commit ae34b9a

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ If you would like to display an update confirmation dialog (an "active install")
246246
247247
*NOTE: If you are using [Redux](http://redux.js.org) and [Redux Saga](https://redux-saga.js.org/), you can alternatively use the [react-native-code-push-saga](http://github.com/lostintangent/react-native-code-push-saga) module, which allows you to customize when `sync` is called in a perhaps simpler/more idiomatic way.*
248248
249-
You can self-host the update's file. Upload the file to your server exactly as you uploaded it to AppCenter. And specify the host and path using the `bundleHost` option.
249+
You can self-host the update's file.
250+
Upload the file to your server exactly as you uploaded it to AppCenter. And specify the host and path using the `bundleHost` option.
250251

251252
```javascript
252253
let codePushOptions = {
@@ -260,27 +261,6 @@ let MyApp: () => React$Node = () => {
260261
MyApp = codePush(codePushOptions)(MyApp);
261262
```
262263

263-
You can customize the behavior by specifying a function to perform the update check instead. (The 'bundleHost' option can be used with it.)
264-
265-
```javascript
266-
let codePushOptions = {
267-
checkFrequency: codePush.CheckFrequency.MANUAL,
268-
bundlehost: 'https://cdn.yours.com/codepush/bundle/',
269-
updateChecker: async (updateCheckRequest) => {
270-
// It's up to you to decide what to do.
271-
const { data: response } = await axios.get('https://your.api.com/update_check', {
272-
params: { app_version: updateCheckRequest.app_version }
273-
});
274-
return response;
275-
},
276-
};
277-
278-
let MyApp: () => React$Node = () => {
279-
}
280-
281-
MyApp = codePush(codePushOptions)(MyApp);
282-
```
283-
284264

285265
### Store Guideline Compliance
286266

0 commit comments

Comments
 (0)