This repository was archived by the owner on Jul 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ defaultConfig {
39
39
...
40
40
resValue "string", "GCM_SENDER_ID", "%YOUR_GCM_SENDER_ID%"
41
41
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
43
43
}
44
44
```
45
45
@@ -75,9 +75,9 @@ Only on Android at the moment. See the [Batch's docs](https://batch.com/doc/ios/
75
75
``` js
76
76
import BatchPush from ' react-native-batch-push' ;
77
77
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));
83
83
```
You can’t perform that action at this time.
0 commit comments