mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-05-12 17:58:40 +08:00
[core] Add SDK_VERSION
This commit is contained in:
@@ -7,6 +7,7 @@ import { NativeModules } from 'react-native';
|
||||
import APPS from '../../utils/apps';
|
||||
import INTERNALS from '../../utils/internals';
|
||||
import App from './firebase-app';
|
||||
import VERSION from '../../version';
|
||||
|
||||
// module imports
|
||||
import { statics as AdMobStatics, MODULE_NAME as AdmobModuleName } from '../admob';
|
||||
@@ -112,6 +113,14 @@ class Firebase {
|
||||
get apps(): Array<App> {
|
||||
return APPS.apps();
|
||||
}
|
||||
|
||||
/**
|
||||
* The current SDK version.
|
||||
* @return {string}
|
||||
*/
|
||||
get SDK_VERSION(): string {
|
||||
return VERSION;
|
||||
}
|
||||
}
|
||||
|
||||
export default new Firebase();
|
||||
|
||||
Reference in New Issue
Block a user