rn-viewpager
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "rn-viewpager", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "ViewPager component for react-native, same api on both android and ios.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,11 +34,11 @@ # React-Native-ViewPager | ||
[`<ViewPager />` Component API](docs/mapview.md) | ||
[`<ViewPager />` Component API](docs/viewpager.md) | ||
[`<IndicatorViewPager />` Component API](docs/marker.md) | ||
[`<IndicatorViewPager />` Component API](docs/indicatorviewpager.md) | ||
[`<PagerDotIndicator />` Component API](docs/callout.md) | ||
[`<PagerDotIndicator />` Component API](docs/dotindicator.md) | ||
[`<PagerTabIndicator />` Component API](docs/polygon.md) | ||
[`<PagerTabIndicator />` Component API](docs/tabindicator.md) | ||
[`<PagerTitleIndicator />` Component API](docs/polyline.md) | ||
[`<PagerTitleIndicator />` Component API](docs/titleindicator.md) | ||
@@ -45,0 +45,0 @@ ## Usage |
@@ -34,2 +34,4 @@ /** | ||
_preScrollX = null | ||
_panResponder = PanResponder.create({ | ||
@@ -113,2 +115,4 @@ onStartShouldSetPanResponder: () => true, | ||
let {x} = e.nativeEvent.contentOffset, offset, position = Math.floor(x / this.state.width) | ||
if (x === this._preScrollX) return | ||
this._preScrollX = x | ||
offset = x / this.state.width - position | ||
@@ -115,0 +119,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
3822652
25
611