Skip to content

Commit

Permalink
fix for cardContainerStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
lhandel committed Feb 16, 2020
1 parent 77d4244 commit 929c9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CardStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,14 @@ class CardStack extends Component {
android: {
elevation: (topCard === 'cardA') ? 3 : 2,
}
, this.props.cardContainerStyle]}),
}),
transform: [
{ rotate: (topCard === 'cardA') ? rotate : '0deg' },
{ translateX: (topCard === 'cardA') ? drag.x : 0 },
{ translateY: (topCard === 'cardA') ? drag.y : 0 },
{ scale: (topCard === 'cardA') ? 1 : scale },
]
}}>
}, this.props.cardContainerStyle]}>
{cardA}
</Animated.View>

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import CardStack, { Card } from 'react-native-card-stack-swiper';
| Props | type | description | required | default |
| --------------------| ------------- | --------------------------------| ------------- | ------------- |
| style | object | container style | | {} |
| cardContainerStyle | object | cardContainerStyle style | | {} |
| secondCardZoom | number | second card zoom | | 0.95 |
| duration | number | animation duration | | 300 |
| loop | bool | keep swiping indefinitely | | false |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-card-stack-swiper",
"version": "1.1.9",
"version": "1.2.0",
"description": "Tinder like react-native card stack swiper",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 929c9a8

Please sign in to comment.