小编cha*_*apa的帖子

React Native:2个滚动视图,带有2个粘性标题

我试图创建一个左侧有时间的日视图,以及人物的顶部标题.目前我可以得到左边或顶部标题,但不是两个.

你如何获得2个粘性标题?

两个滚动视图,每个都有一个标题

我的渲染看起来像这样:

  <ScrollView style={{height: 600}}>
    <ScrollView horizontal={true}>
      <View style={styles.column}>
        <View style={{ flex: 1, flexDirection: 'row', width}}>
          {header}
        </View>

        <View style={styles.row}>
          <View style={[styles.container, { width, marginLeft: 40 }]}>
            {this.generateRows()}
          </View>
        </View>

      </View>
    </ScrollView>
    <View style={{backgroundColor: 'white', position: 'absolute', top: 0, bottom: 0, left: 0, }}>
      <View style={{ flex: 1, flexDirection: 'row'}}>
        <View style={styles.row}>
          <Text></Text>
        </View>
      </View>
      <View style={{height: 1000, width: 40 }}>
        {this.generateRowLabels()}
      </View>
    </View>
  </ScrollView>
Run Code Online (Sandbox Code Playgroud)

scrollview react-native

13
推荐指数
1
解决办法
928
查看次数

删除 cookie 的最佳方法,服务器端

我正在使用 Node.js 并希望删除我的域的浏览器的所有 cookie。什么是最好的方法来做到这一点?只需将它们设置为过期,还是有其他技巧?

cookies node.js express

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

cookies ×1

express ×1

node.js ×1

react-native ×1

scrollview ×1