我是React Native的新手 . 为了导航的目的,我使用wix版本1.1.486的本地导航库 . 对于标签导航,我实现了这一点: -
有没有办法从底部到顶部抬起这个标签栏?
负责此事的代码: -
import { Navigation } from 'react-native-navigation';
import Icon from 'react-native-vector-icons/Ionicons';
const startTabs = ()=>{
Promise.all([
Icon.getImageSource("md-map",30),
Icon.getImageSource("ios-share-alt",30)
]).then(sources =>{
Navigation.startTabBasedApp({
tabs: [
{
label: 'One',
title: 'One',
screen: 'prabhuji.FlowerTabOne',
icon: sources[0]
},
{
label: 'Two',
title: 'Two',
screen: 'prabhuji.FlowerTabTwo',
icon: sources[1]
},
{
label: 'Three',
title: 'Three',
screen: 'prabhuji.FlowerTabThree',
icon: sources[1]
},
{
label: 'Four',
title: 'Four',
screen: 'prabhuji.FlowerTabFour',
icon: sources[0]
}
],
tabsStyle: {
},
appStyle: {
orientation: 'portrait', // Sets a specific orientation to the entire app. Default: 'auto'. Supported values: 'auto', 'landscape', 'portrait'
tabBarBackgroundColor: '#0f2362',
}
});
});
}
export default startTabs;