mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 02:35:41 +00:00
9674c99a33
- [ReactServer] Fix graph update | Amjad Masad - Added RCTStatusBarManager module | Andrew McCloud
36 lines
818 B
JavaScript
36 lines
818 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule StatusBarIOS
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
var { RKStatusBarManager } = require('NativeModules');
|
|
|
|
var StatusBarIOS = {
|
|
|
|
Style: {
|
|
default: RKStatusBarManager.Style.default,
|
|
lightContent: RKStatusBarManager.Style.lightContent
|
|
},
|
|
|
|
Animation: {
|
|
none: RKStatusBarManager.Animation.none,
|
|
fade: RKStatusBarManager.Animation.fade,
|
|
slide: RKStatusBarManager.Animation.slide,
|
|
},
|
|
|
|
setStyle(style: number, animated: boolean) {
|
|
animated = animated || false;
|
|
RKStatusBarManager.setStyle(style, animated);
|
|
},
|
|
|
|
setHidden(hidden: boolean, animation: number) {
|
|
animation = animation || StatusBarIOS.Animation.none;
|
|
RKStatusBarManager.setHidden(hidden, animation);
|
|
},
|
|
};
|
|
|
|
module.exports = StatusBarIOS;
|