【问题标题】:React Native Cannot Collapsing Header When Header Scrolling标题滚动时React Native无法折叠标题
【发布时间】:2019-12-16 18:20:18
【问题描述】:

我正在尝试实现https://snack.expo.io/@satya164/collapsible-header-with-tabview。但是我在滚动标题时无法折叠标题,但在标签或内容滚动时会折叠,我认为是因为TabView版本,所以尝试更新最新版本,我将TabView道具上的renderHeader更改为renderTabBar

<TabView
    style={tabStyles.container}
    navigationState={this.state}
    renderScene={this._renderScene}
    renderTabBar={this._renderHeader}
    onIndexChange={this._handleIndexChange}
    initialLayout={initialLayout}
  />

但仍然没有任何反应。 谁能解决?

【问题讨论】:

    标签: react-native tabs react-native-ios tabview


    【解决方案1】:

    React native collapsible header

    请参考此链接。您可能还需要添加一些代码才能拥有它。

    【讨论】:

    • 如果我不使用导航怎么办?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-22
    • 1970-01-01
    • 2023-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多