📌  相关文章
📜  反应原生滚动视图固定标题 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:30.178000             🧑  作者: Mango

代码示例1
if (!NativeModules.F8Scrolling) {
  var distance = EMPTY_CELL_HEIGHT - this.state.stickyHeaderHeight;
  var translateY = 0; this.state.anim.interpolate({
    inputRange: [0, distance],
    outputRange: [distance, 0],
    extrapolateRight: 'clamp',
  });
  transform = [{translateY}];
}