0

PullToRefresh组件,同样的代码,在未升级IOS13的iPhone上正常,但在已升级IOS13的IPhone上异常。

<PullToRefresh
            damping={60}
            ref={this.pullToRefreshRefs}
            style={{
              height: "calc(100vh - 132px)",
              overflow: "auto"
            }}
            indicator={{}}
            direction={"up"}
            refreshing={this.state.isFetching}
            onRefresh={this.onListViewRefresh}
            getScrollContainer={() => undefined}
            distanceToRefresh={25}
          >
            <List>
              {this.state.logs.map(log => (
                <List.Item
                  key={log.operationLogId}
                  arrow="empty"
                  multipleLine
                  className={styles.log}
                  wrap
                >
                  <div className={styles.header}>
                    <span> {log.userNick}</span>
                    <span>
                      {moment(log.updatedAt).format("YYYY年M月D日 H时m分s秒")}
                    </span>
                  </div>

                  <List.Item.Brief>
                    在{this.findSystem(log.systemId).cname},{log.description}
                  </List.Item.Brief>
                </List.Item>
              ))}
            </List>
          </PullToRefresh>
10月28日提问
0 个回答

撰写答案

推广链接