react-native-navigation
Version:
React Native Navigation - truly native navigation for iOS and Android
19 lines (18 loc) • 626 B
JavaScript
;
export class Constants {
static async get(nativeCommandSender) {
const constants = await nativeCommandSender.getNavigationConstants();
return new Constants(constants);
}
static getSync(nativeCommandSender) {
const constants = nativeCommandSender.getNavigationConstantsSync();
return new Constants(constants);
}
constructor(constants) {
this.statusBarHeight = constants.statusBarHeight;
this.topBarHeight = constants.topBarHeight;
this.backButtonId = constants.backButtonId;
this.bottomTabsHeight = constants.bottomTabsHeight;
}
}
//# sourceMappingURL=Constants.js.map