Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nuke-scroll-view

nuke405Apache-2.02.3.12

滚动组件

nuke, nuke-scroll-view

readme

ScrollView

  • category: Components
  • chinese: 滚动组件
  • type: Basic

Design

ScrollView is a component that wraps the scrolling operation, which needs a definite height or flex: 1 to show well generally.

API

Attribute Description Type Default
horizontal horizontal, or not boolean false
showsHorizontalScrollIndicator show horizontalScrollIndicator, or not boolean true
showsVerticalScrollIndicator show verticalScrollIndicator, or not boolean true
onEndReachedThreshold the offset of loading more string 500rem
onEndReached event triggered while reaching the end ( when distance to the bottom is equal to onEndReachedThreshold ) event null
scrollEventThrottle in order to save the flow, there is a frequency that the scroll event is called when scrolling, the default value is 100. number 100
onScroll event triggered while scrolling function

resetLoadmore Demo Reference

// it will call resetLoadmore to ensure that the onEndReached event will still be triggered the next time even if the data is not loaded.  
this.refs.scroller1.resetLoadmore();

// Omit part of the code
<ScrollView ref="scroller1" onEndReached={this.loadmore}>
    {this.getViews()}
</ScrollView>

This is a method to reset the flag that whether the onEndReached event can be triggered.

The flag default value is true, it means the onEndReached event will be triggered when the target is reaching the end.

The native app will set the flag to false, if the target has triggered the onEndReached event but the content of page scroller becomes more ( or less instead ) without loading more data through the setState.

Call the resetLoadmore to reset the flag so that the onEndReachen event could be triggered again.

The Other

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.3.12 (2019-09-26)

Note: Version bump only for package nuke-scroll-view

2.3.11 (2019-09-26)

Note: Version bump only for package nuke-scroll-view

2.3.10 (2019-09-26)

Note: Version bump only for package nuke-scroll-view

2.3.9 (2019-09-26)

Note: Version bump only for package nuke-scroll-view

2.3.8 (2019-09-25)

Note: Version bump only for package nuke-scroll-view

2.3.7 (2019-07-24)

Note: Version bump only for package nuke-scroll-view

2.3.6 (2019-07-19)

Note: Version bump only for package nuke-scroll-view

2.3.5 (2019-07-02)

Note: Version bump only for package nuke-scroll-view

2.3.4 (2019-05-10)

Note: Version bump only for package nuke-scroll-view

2.3.3 (2019-04-28)

Note: Version bump only for package nuke-scroll-view

2.3.2 (2019-01-15)

Note: Version bump only for package nuke-scroll-view

2.3.1 (2019-01-15)

Note: Version bump only for package nuke-scroll-view

2.3.0 (2018-11-14)

Bug Fixes

Features

  • 将UI组件与功能库拆分 (f5d0a2c)

2.2.29 (2018-10-09)

Note: Version bump only for package nuke-scroll-view

2.2.28 (2018-10-09)

Note: Version bump only for package nuke-scroll-view

2.2.27 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.26 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.25 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.24 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.23 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.22 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.21 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.20 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.19 (2018-10-08)

Note: Version bump only for package nuke-scroll-view

2.2.18 (2018-09-30)

Note: Version bump only for package nuke-scroll-view

2.2.17 (2018-09-26)

Note: Version bump only for package nuke-scroll-view

2.2.16 (2018-09-19)

Note: Version bump only for package nuke-scroll-view

2.2.15 (2018-09-19)

Note: Version bump only for package nuke-scroll-view

2.2.14 (2018-09-11)

Note: Version bump only for package nuke-scroll-view

2.2.13 (2018-09-11)

Note: Version bump only for package nuke-scroll-view

2.2.12 (2018-09-11)

Note: Version bump only for package nuke-scroll-view

2.2.11 (2018-09-06)

Note: Version bump only for package nuke-scroll-view

2.2.10 (2018-09-06)

Note: Version bump only for package nuke-scroll-view

2.2.9 (2018-09-06)

Note: Version bump only for package nuke-scroll-view

2.2.8 (2018-09-05)

Note: Version bump only for package nuke-scroll-view

2.2.7 (2018-09-05)

Note: Version bump only for package nuke-scroll-view

2.2.6 (2018-09-04)

Note: Version bump only for package nuke-scroll-view

2.2.5 (2018-09-04)

Note: Version bump only for package nuke-scroll-view

2.2.4 (2018-09-04)

Note: Version bump only for package nuke-scroll-view

2.2.3 (2018-08-24)

Note: Version bump only for package nuke-scroll-view

2.2.2 (2018-08-23)

Note: Version bump only for package nuke-scroll-view

2.2.1 (2018-08-23)

Note: Version bump only for package nuke-scroll-view

2.2.0 (2018-08-23)

Bug Fixes

Features

2.1.10 (2018-08-20)

Note: Version bump only for package nuke-scroll-view

2.1.9 (2018-08-20)

Note: Version bump only for package nuke-scroll-view

2.1.8 (2018-08-20)

Note: Version bump only for package nuke-scroll-view

2.1.6 (2018-08-15)

Note: Version bump only for package nuke-scroll-view

2.1.4 (2018-08-15)

Bug Fixes

  • eslint for import {isWeb} from nuke-env (d856e2c)

2.1.3 (2018-08-15)

Note: Version bump only for package nuke-scroll-view

2.1.1 (2018-08-15)

Note: Version bump only for package nuke-scroll-view