Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-viewpager

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-viewpager - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

.tmp/reactNativeBuild/debuggerWorker.js

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc