[ios][database] added setPersistenceCacheSizeBytes(bytes: integer);
This commit is contained in:
parent
152c6a63c3
commit
615450f763
@ -35,6 +35,11 @@ RCT_EXPORT_METHOD(setPersistence:(NSString *) appName
|
||||
[RNFirebaseDatabase getDatabaseForApp:appName].persistenceEnabled = state;
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(setPersistenceCacheSizeBytes:(NSString *) appName
|
||||
size:(NSInteger *) size) {
|
||||
[RNFirebaseDatabase getDatabaseForApp:appName].persistenceCacheSizeBytes = (NSUInteger)size;
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(enableLogging:(BOOL) enabled) {
|
||||
[FIRDatabase setLoggingEnabled:enabled];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user