mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 22:44:22 +08:00
- [ReactNative] Remove pushNotification prop from renderApplication | Eric Vicenti - [react_native] Stub VibrationIOS on Android | Andy Street - [ReactNative] Simplify and test interpolators | Christopher Chedeau - [ReactNative] Increase timeout for obj-c tests | Christopher Chedeau - [ReactNative] Updated RKText to new UIManager system | Nick Lockwood - [ReactNative] Unforked RCTShadowView, moved RKTextView into FBReactKitTextModule | Nick Lockwood - [ReactKit] Remove NativeModulesDeprecated | Spencer Ahrens - [ReactNative] Allow single callbacks in NativeModules | Spencer Ahrens - [ReactNative] s/RK/RCT in OSS | Spencer Ahrens - [ReactNative] Cleanup StyleSheet API | Christopher Chedeau - [RCTVibration] Basic Vibration API | Christopher Chedeau - [React Native] Prevent crash in redbox code with two thrown errors | Ben Alpert - [ReactNative] unbreak Android | Andrew Rasmussen
36 lines
826 B
JavaScript
36 lines
826 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule StatusBarIOS
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
var { RCTStatusBarManager } = require('NativeModules');
|
|
|
|
var StatusBarIOS = {
|
|
|
|
Style: {
|
|
default: RCTStatusBarManager.Style.default,
|
|
lightContent: RCTStatusBarManager.Style.lightContent
|
|
},
|
|
|
|
Animation: {
|
|
none: RCTStatusBarManager.Animation.none,
|
|
fade: RCTStatusBarManager.Animation.fade,
|
|
slide: RCTStatusBarManager.Animation.slide,
|
|
},
|
|
|
|
setStyle(style: number, animated: boolean) {
|
|
animated = animated || false;
|
|
RCTStatusBarManager.setStyle(style, animated);
|
|
},
|
|
|
|
setHidden(hidden: boolean, animation: number) {
|
|
animation = animation || StatusBarIOS.Animation.none;
|
|
RCTStatusBarManager.setHidden(hidden, animation);
|
|
},
|
|
};
|
|
|
|
module.exports = StatusBarIOS;
|