2015-02-06 23:46:31 +00:00
|
|
|
/**
|
2015-03-23 22:07:33 +00:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
2015-02-06 23:46:31 +00:00
|
|
|
*
|
|
|
|
* @providesModule StatusBarIOS
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
2016-02-16 11:04:16 +00:00
|
|
|
const StatusBar = require('StatusBar');
|
2015-02-06 23:46:31 +00:00
|
|
|
|
2016-02-16 11:04:16 +00:00
|
|
|
import type {StatusBarStyle, StatusBarAnimation} from 'StatusBar';
|
2015-02-06 23:46:31 +00:00
|
|
|
|
2016-02-16 11:04:16 +00:00
|
|
|
/**
|
|
|
|
* Deprecated. Use `StatusBar` instead.
|
|
|
|
*/
|
|
|
|
const StatusBarIOS = {
|
2015-02-06 23:46:31 +00:00
|
|
|
|
2015-06-05 15:46:17 +00:00
|
|
|
setStyle(style: StatusBarStyle, animated?: boolean) {
|
2016-02-16 11:04:16 +00:00
|
|
|
console.warn('`StatusBarIOS.setStyle` is deprecated. Use `StatusBar.setBarStyle` instead.');
|
|
|
|
StatusBar.setBarStyle(style, animated);
|
2015-02-06 23:46:31 +00:00
|
|
|
},
|
|
|
|
|
2015-06-05 15:46:17 +00:00
|
|
|
setHidden(hidden: boolean, animation?: StatusBarAnimation) {
|
2016-02-16 11:04:16 +00:00
|
|
|
console.warn('`StatusBarIOS.setHidden` is deprecated. Use `StatusBar.setHidden` instead.');
|
|
|
|
StatusBar.setHidden(hidden, animation);
|
2015-02-06 23:46:31 +00:00
|
|
|
},
|
2015-07-23 23:19:27 +00:00
|
|
|
|
|
|
|
setNetworkActivityIndicatorVisible(visible: boolean) {
|
2016-02-16 11:04:16 +00:00
|
|
|
console.warn(
|
|
|
|
'`StatusBarIOS.setNetworkActivityIndicatorVisible` is deprecated. ' +
|
|
|
|
'Use `StatusBar.setNetworkActivityIndicatorVisible` instead.'
|
|
|
|
);
|
|
|
|
StatusBar.setNetworkActivityIndicatorVisible(visible);
|
2015-07-23 23:19:27 +00:00
|
|
|
},
|
2015-02-06 23:46:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = StatusBarIOS;
|