Socket
Book a DemoInstallSign in
Socket

@lilithgames/rn-scrollview

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lilithgames/rn-scrollview

The ScrollView, extend from react-native-spring-scrollview by @bolan9999.

1.0.40
latest
npmnpm
Version published
Maintainers
3
Created
Source

rn-scrollview

this._offsetY.setValue(this._offsetYValue); 能做到准确的偏移 this.listViewRef._forceUpdateContent 能做到准确偏移后的内容刷新

Usage

const rnScrollview = require('rn-scrollview');

// TODO: DEMONSTRATE API

扩展

ChineseNormalFooter
import { NormalFooter } from "../NormalFooter";

export class ChineseNormalFooter extends NormalFooter {
  getTitle() {
    const s = this.state.status;
    if (s === "dragging" || s === "waiting") {
      return "上拉加载更多";
    } else if (s === "draggingEnough") {
      return "松开加载更多";
    } else if (s === "loading") {
      return "正在加载数据...";
    } else if (s === "draggingCancel") {
      return "放弃加载更多";
    } else if (s === "rebound") {
      return "加载完成";
    } else if (s === "allLoaded") {
      return "已经到底啦";
    }
  }
}
ChineseNormalHeader
import {NormalHeader} from "../NormalHeader";

export class ChineseNormalHeader extends NormalHeader{
  getTitle() {
    const s = this.state.status;
    if (s === "pulling" || s === "waiting") {
      return "下拉可以刷新";
    } else if (s === "pullingEnough") {
      return "松开立即刷新";
    } else if (s === "refreshing") {
      return "正在刷新数据中...";
    } else if (s === "pullingCancel") {
      return "放弃刷新";
    } else if (s === "rebound") {
      return "刷新完成";
    }
  }
}

Keywords

ScrollView

FAQs

Package last updated on 06 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.