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

Commit

Permalink
Fixing missing iteration in supported events
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland authored and Minishlink committed Dec 6, 2021
1 parent 997b076 commit 3751c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNBatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ -(void)stopObserving {
- (NSArray<NSString *> *)supportedEvents {
NSMutableArray *events = [NSMutableArray new];

for (int i = BatchEventDispatcherTypeNotificationOpen; i < BatchEventDispatcherTypeMessagingWebViewClick; i++) {
for (int i = BatchEventDispatcherTypeNotificationOpen; i <= BatchEventDispatcherTypeMessagingWebViewClick; i++) {
NSString* eventName = [self mapBatchEventDispatcherTypeToRNEvent:i];
if (eventName != nil) {
[events addObject:eventName];
Expand Down

0 comments on commit 3751c46

Please sign in to comment.