【发布时间】:2018-10-24 10:45:06
【问题描述】:
是否可以将图片移到顶部栏后面。 我提供了一个 Screenshot 。 谢谢各位!
编辑 1:一旦您看到标签栏 + 一个场景示例。这是在路由器组件中。 下一个代码片段取自这些场景中呈现的组件中的一个。
class Courses extends React.Component{ render(){
return(
<Image
source={require('../../../assets/backgrounds/Navigation/kurse.jpg')}
style={{resizeMode: 'stretch', height: 100, width: 430}}
/>
<Scene
key="tabbar"
tabs
tabBarStyle={{backgroundColor: '#252525'}}
activeBackgroundColor="#CEECF5"
inactiveBackgroundColor="white"
>
<Scene key="Start" icon={HomeIcon} >
<Scene
key="Dashboard"
component={Dashboard}
titleStyle={styles.nagivationBarTitleStyle}
title="Start"
rightButtonImage={SettingIcon}
onRight={()=>{Actions.Settings()}}
navigationBarStyle={{ backgroundColor: 'transparent'}}
/>
【问题讨论】:
-
请将编写的代码分享给其他开发者。
-
@Sateesh 确实添加了代码
标签: react-native react-native-router-flux