新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
創(chuàng)新互聯(lián)React教程:iOS狀態(tài)欄
保留所有版權(quán)。

成都創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司提供網(wǎng)站設(shè)計(jì)和自適應(yīng)建站服務(wù)。團(tuán)隊(duì)由有經(jīng)驗(yàn)的網(wǎng)頁(yè)設(shè)計(jì)師、程序員和市場(chǎng)專家組成,能夠提供從H5網(wǎng)站設(shè)計(jì),網(wǎng)站制作,廣告投放,模板建站到成都微信小程序等全方位服務(wù)。 以客戶為中心,致力于為客戶提供創(chuàng)新、高效的解決方案,幫助您打造成功的企業(yè)網(wǎng)站。
源代碼是在 BSD-style 許可下經(jīng)過(guò)許可的,是在源代碼樹(shù)的根目錄下的LICENSE 文件里找到的。額外授予的專利權(quán)可以在同目錄下的 PATENTS 文件里找到。
@flow
方法
static setStyle(style: number, animated?: boolean)
static setHidden(hidden: boolean, animation: number)
例子
Edit on GitHub
'use strict';
var React = require('react-native');
var {
StyleSheet,
View,
Text,
TouchableHighlight,
StatusBarIOS,
} = React;
exports.framework = 'React';
exports.title = 'StatusBarIOS';
exports.description = 'Module for controlling iOS status bar';
exports.examples = [{
title: 'Status Bar Style',
render() {
return (
{Object.keys(StatusBarIOS.Style).map((key) => StatusBarIOS.setStyle(StatusBarIOS.Style[key])}>
setStyle(StatusBarIOS.Style.{key})
)}
);
},
}, {
title: 'Status Bar Style Animated',
render() {
return (
{Object.keys(StatusBarIOS.Style).map((key) => StatusBarIOS.setStyle(StatusBarIOS.Style[key], true)}>
setStyle(StatusBarIOS.Style.{key}, true)
)}
);
},
}, {
title: 'Status Bar Hidden',
render() {
return (
{Object.keys(StatusBarIOS.Animation).map((key) =>
StatusBarIOS.setHidden(true, StatusBarIOS.Animation[key])}>
setHidden(true, StatusBarIOS.Animation.{key})
StatusBarIOS.setHidden(false, StatusBarIOS.Animation[key])}>
setHidden(false, StatusBarIOS.Animation.{key})
)}
);
},
}];
var styles = StyleSheet.create({
wrapper: {
borderRadius: 5,
marginBottom: 5,
},
button: {
backgroundColor: '#eeeeee',
padding: 10,
},
}); 新聞標(biāo)題:創(chuàng)新互聯(lián)React教程:iOS狀態(tài)欄
地址分享:http://fisionsoft.com.cn/article/coijehj.html


咨詢
建站咨詢
