File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/database/ios/RNFBDatabase Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- (BOOL )hasListeners ;
31
31
32
- - (void )addEventListener : (NSString *)eventRegistrationKey : (FIRDatabaseHandle)listener ;
32
+ - (void )addEventListener : (NSString *)eventRegistrationKey handle : (FIRDatabaseHandle)handle ;
33
33
34
34
- (void )removeEventListener : (NSString *)eventRegistrationKey ;
35
35
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ - (id)getIdValue:(NSString *)value type:(NSString *)type {
112
112
}
113
113
}
114
114
115
- - (void )addEventListener : (NSString *)eventRegistrationKey : (FIRDatabaseHandle)listener {
116
- _listeners[eventRegistrationKey] = @(listener );
115
+ - (void )addEventListener : (NSString *)eventRegistrationKey handle : (FIRDatabaseHandle)handle {
116
+ _listeners[eventRegistrationKey] = @(handle );
117
117
}
118
118
119
119
- (void )removeEventListener : (NSString *)eventRegistrationKey {
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ - (void)addEventListener:(RNFBDatabaseQuery *)databaseQuery
133
133
FIRDatabaseHandle handle = [databaseQuery.query observeEventType: firDataEventType
134
134
andPreviousSiblingKeyWithBlock: andPreviousSiblingKeyWithBlock
135
135
withCancelBlock: errorBlock];
136
- [databaseQuery addEventListener: eventRegistrationKey: handle];
136
+ [databaseQuery addEventListener: eventRegistrationKey handle : handle];
137
137
}
138
138
}
139
139
You can’t perform that action at this time.
0 commit comments