@@ -391,11 +391,11 @@ - (id) init
391391}
392392
393393RCT_EXPORT_METHOD (set:(NSString *) path
394- value :(NSDictionary *)value
394+ data :(NSDictionary *)data
395395 callback:(RCTResponseSenderBlock) callback)
396396{
397397 FIRDatabaseReference *ref = [self getPathRef: path];
398- [ref setValue: value withCompletionBlock: ^(NSError * _Nullable error, FIRDatabaseReference * _Nonnull ref) {
398+ [ref setValue: [data valueForKey: @" value" ] withCompletionBlock: ^(NSError * _Nullable error, FIRDatabaseReference * _Nonnull ref) {
399399 [self handleCallback: @" set" callback: callback databaseError: error];
400400 }];
401401}
@@ -420,7 +420,7 @@ - (id) init
420420}
421421
422422RCT_EXPORT_METHOD (push:(NSString *) path
423- props :(NSDictionary *) props
423+ data :(NSDictionary *) data
424424 callback:(RCTResponseSenderBlock) callback)
425425{
426426 FIRDatabaseReference *ref = [self getPathRef: path];
@@ -429,8 +429,8 @@ - (id) init
429429 NSURL *url = [NSURL URLWithString: newRef.URL];
430430 NSString *newPath = [url path ];
431431
432- if ([props count ] > 0 ) {
433- [newRef setValue: props withCompletionBlock: ^(NSError * _Nullable error, FIRDatabaseReference * _Nonnull ref) {
432+ if ([data count ] > 0 ) {
433+ [newRef setValue: [data valueForKey: @" value " ] withCompletionBlock: ^(NSError * _Nullable error, FIRDatabaseReference * _Nonnull ref) {
434434 if (error != nil ) {
435435 // Error handling
436436 NSDictionary *evt = @{
0 commit comments