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

@ldn0x7dc/react-native-view-pager

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ldn0x7dc/react-native-view-pager - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

19

library/ViewPager.js

@@ -148,11 +148,20 @@ import React, { PropTypes, Component } from 'react';

style: [page.props.style, {
width: this.state.width,
height: this.state.height,
width: width,
height: height,
position: 'relative',
marginLeft: 0,
marginRight: rowID === this.pageCount - 1 ? 0 : this.props.pageMargin,
}]
};
const element = React.createElement(page.type, newProps);
return React.createElement(page.type, newProps);
if(this.props.pageMargin > 0 && rowID > 0) {
//Do not using margin style to implement pageMargin. The ListView seems calculate a wrong width for children views with margin.
return (
<View style={{width: width + this.props.pageMargin, height: height, alignItems: 'flex-end'}}>
{element}
</View>
);
} else {
return element;
}
}

@@ -159,0 +168,0 @@

{
"name": "@ldn0x7dc/react-native-view-pager",
"version": "0.0.4",
"version": "0.0.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "library/ViewPager.js",

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