Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 7330714

Browse files
authored
Update README.md
1 parent a7f601b commit 7330714

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defaultConfig {
3939
...
4040
resValue "string", "GCM_SENDER_ID", "%YOUR_GCM_SENDER_ID%"
4141
resValue "string", "BATCH_API_KEY", "%YOUR_BATCH_API_KEY%"
42-
resValue "string", "BATCH_INBOX_SECRET", "%YOUR_BATCH_INBOX_SECRET%" // if you want to use Batch's optional Inbox feature
42+
resValue "string", "BATCH_INBOX_SECRET", "%YOUR_BATCH_INBOX_SECRET%" // only if you want to use Batch's optional Inbox feature
4343
}
4444
```
4545

@@ -75,9 +75,9 @@ Only on Android at the moment. See the [Batch's docs](https://batch.com/doc/ios/
7575
```js
7676
import BatchPush from 'react-native-batch-push';
7777

78-
Batch.fetchNewNotifications('theUserId')
79-
.then(notifications => {
80-
// notifications is { title: string, body: string, timestamp: number, payload: Object }
81-
})
82-
.catch(e => console.warn('BatchPush error', e));
78+
BatchPush.fetchNewNotifications('theUserId')
79+
.then(notifications => {
80+
// notifications is Array<{ title: string, body: string, timestamp: number, payload: Object }>
81+
})
82+
.catch(e => console.warn('BatchPush error', e));
8383
```

0 commit comments

Comments
 (0)