Skip to content

Commit 46d35c0

Browse files
authored
docs: fix sync import (#5)
1 parent 85efe45 commit 46d35c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ withCodePush({ checkFrequency: CheckFrequency.ON_APP_RESUME })(MyApp);
145145
Alternatively, if you want fine-grained control over when the check happens (like a button press or timer interval), eg. in a staging environment, you can call [`CodePush.sync()`](docs/api-js/functions/sync.md) at any time with your desired `SyncOptions`, and turn off CodePush's automatic checking by specifying a manual `checkFrequency`:
146146

147147
```javascript
148-
import withCodePush, { CheckFrequency, InstallMode } from '@appzung/react-native-code-push';
148+
import withCodePush, { CheckFrequency, InstallMode, sync } from '@appzung/react-native-code-push';
149149

150150
class MyApp extends Component {
151151
onButtonPress() {
152-
CodePush.sync({
152+
sync({
153153
updateDialog: true,
154154
installMode: InstallMode.IMMEDIATE,
155155
});

0 commit comments

Comments
 (0)