mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps
This commit is contained in:
@@ -89,6 +89,29 @@ export default class Reference extends ReferenceBase {
|
||||
return promisify('set', this.database._native)(path, _value);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param priority
|
||||
* @returns {*}
|
||||
*/
|
||||
setPriority(priority: string | number | null) {
|
||||
const path = this.path;
|
||||
const _priority = this._serializeAnyType(priority);
|
||||
return promisify('priority', FirebaseDatabase)(path, _priority);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param priority
|
||||
* @returns {*}
|
||||
*/
|
||||
setWithPriority(value: any, priority: string | number | null) {
|
||||
const path = this.path;
|
||||
const _priority = this._serializeAnyType(priority);
|
||||
const _value = this._serializeAnyType(value);
|
||||
return promisify('withPriority', FirebaseDatabase)(path, _value, _priority);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param val
|
||||
|
||||
Reference in New Issue
Block a user