【发布时间】:2019-01-14 14:50:55
【问题描述】:
我正在使用 Wix 的导航 V2,我想在顶部栏中添加一个搜索字段,这就是我推送显示项目列表的屏幕的方式
Navigation.push(this.props.componentId, {
component: {
name: 'app.SearchEvent',
passProps: {
eventName: this.state.eventName,
},
options: {
topBar: {
drawBehind: false,
searchBar: true,
searchBarHiddenWhenScrolling: true,
searchBarPlaceholder: 'Recherche...',
},
},
},
});
我在文档的playground 中看到了一个示例,但它也不适用于 Android,playground example 那么如何添加呢?
【问题讨论】:
标签: react-native searchbar react-native-navigation-v2