0
我想從Shoutem UI工具箱中使用NavigationBar。我如何使用NavigationBar shoutemui
我的代碼:
<Screen>
<NavigationBar centerComponent={<Title>TITLE</Title>}/>
<ListView
data={groupedData}
renderRow={this.renderRow}
loading ={this.state.loading}
onRefresh={this.getAllNewsfeed.bind(this)}
onLoadMore ={this.loadMoreData.bind(this)}
loadMoreSpinner={<Spinner/>} />
<Button onPress={this.onLogout.bind(this)}>
<Text>
LOGOUT
</Text>
</Button>
</Screen>
但導航欄總是隱藏,上面的列表視圖導航欄。但是,當我嘗試將其替換爲標題。它仍然有效。但我不想使用標題,因爲我想要添加按鈕或其他相同的東西。
感謝你這麼多的幫助我<3它的工作! :D:D:D –
感謝您使用我們的工具包。 –