Socket
Socket
Sign inDemoInstall

react-native-viewpager-enhanced

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.10 to 1.1.11

0

index.js

@@ -0,0 +0,0 @@ /**

2

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

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

@@ -0,0 +0,0 @@ # First

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

<TouchableOpacity
disabled={this.props.disabled}
style={[styles.itemContainer, isSelected ? selectedItemStyle : itemStyle]}

@@ -125,2 +126,2 @@ activeOpacity={0.6}

}
});
});

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

<TouchableOpacity
disabled={this.props.disabled}
style={[styles.titleContainer, itemStyle]}

@@ -233,2 +234,2 @@ activeOpacity={0.6}

}
});
});

@@ -28,5 +28,2 @@ /**

currentPage: 0,
/**
* iOS not support yet
*/
pageMargin: 0

@@ -89,7 +86,11 @@ };

if (needMonitorTouch) props = Object.assign(props, this._panResponder.panHandlers);
const scrollViewStyle = {
overflow: 'visible',
marginHorizontal: -this.props.pageMargin / 2,
};
if (this.props.style && !this.props.style.height)
return <ScrollView {...props}/>;
return <ScrollView {...props} style={[this.props.style, scrollViewStyle]}/>;
else return (
<View style={this.props.style}>
<ScrollView {...props} style={null}/>
<ScrollView {...props} style={scrollViewStyle}/>
</View>

@@ -166,2 +167,2 @@ );

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc