rn-viewpager
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -14,1 +14,7 @@ # <ViewPager /> Component Api | ||
| Method | Params | Default | Note | | ||
| --- | --- | --- | --- | | ||
| setPage | selectedPageIndex | | | | ||
| setPageWithoutAnimation | selectedPageIndex | | | | ||
{ | ||
"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
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
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
612
3820585