2.3.12 • Published 5 years ago

nuke-scroll-view v2.3.12

Weekly downloads
75
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

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

AttributeDescriptionTypeDefault
horizontalhorizontal, or notbooleanfalse
showsHorizontalScrollIndicatorshow horizontalScrollIndicator, or notbooleantrue
showsVerticalScrollIndicatorshow verticalScrollIndicator, or notbooleantrue
onEndReachedThresholdthe offset of loading morestring500rem
onEndReachedevent triggered while reaching the end ( when distance to the bottom is equal to onEndReachedThreshold )eventnull
scrollEventThrottlein order to save the flow, there is a frequency that the scroll event is called when scrolling, the default value is 100.number100
onScrollevent triggered while scrollingfunction

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

  • Chat with @翊晨[yichen] in Dingtalk desktop App Download
  • DingTalk Group
2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.0

5 years ago

0.0.4

6 years ago

2.2.29

6 years ago

2.2.28

6 years ago

2.2.26

6 years ago

2.2.24

6 years ago

2.2.23

6 years ago

2.2.21

6 years ago

2.2.19

6 years ago

2.2.18

6 years ago

2.2.17

6 years ago

2.2.16

6 years ago

2.2.14

6 years ago

2.2.13

6 years ago

2.2.11

6 years ago

2.2.10

6 years ago

2.2.8

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.1.10

6 years ago

2.1.6

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.1-4.3

6 years ago

2.1.1-3

6 years ago

2.0.10

6 years ago

1.0.8

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

2.0.7

6 years ago

1.0.5

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago