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.2 to 1.2.3

6

docs/viewpager.md

@@ -14,1 +14,7 @@ # <ViewPager /> Component Api

| Method | Params | Default | Note |
| --- | --- | --- | --- |
| setPage | selectedPageIndex | | |
| setPageWithoutAnimation | selectedPageIndex | | |

2

package.json
{
"name": "rn-viewpager",
"version": "1.2.2",
"version": "1.2.3",
"description": "ViewPager component for react-native, same api on both android and ios.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,2 +18,3 @@ /**

itemStyle: View.propTypes.style,
selectedItemStyle: View.propTypes.style,
itemTextStyle: Text.propTypes.style,

@@ -45,3 +46,3 @@ selectedItemTextStyle: Text.propTypes.style,

render () {
let {titles, pager, itemStyle, itemTextStyle, selectedItemTextStyle, selectedBorderStyle} = this.props
let {titles, pager, itemStyle, selectedItemStyle, itemTextStyle, selectedItemTextStyle, selectedBorderStyle} = this.props
if (!titles || titles.length === 0)return null

@@ -60,3 +61,3 @@

<TouchableOpacity
style={[styles.titleContainer, itemStyle]}
style={[styles.titleContainer, isSelected ? selectedItemStyle : itemStyle]}
activeOpacity={0.6}

@@ -63,0 +64,0 @@ key={index}

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