Skip to content

Commit

Permalink
Add containerStyle prop to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCCWong committed Apr 29, 2019
1 parent b8fa4e8 commit a4ff768
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ component as the back of the card.
| Props | Type | Description | Default |
| -------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- | ------------ |
| cardZIndex | string | z-Index for the flip card. Used to help solve context stack issues while using multiple flip cards. | auto |
| containerStyle | object | Extra css styling that can be applied to the container. | {} |
| isFlipped | bool | False to show the front of the card, true to show the back | undefined |
| flipSpeedBackToFront | number | The speed of the flip animation when the card flips from back to front, the higher the number the slower the flip animation | 0.6 |
| flipSpeedFrontToBack | number | The speed of the flip animation when the card flips from front to back, the higher the number the slower the flip animation | 0.6 |
Expand Down
2 changes: 1 addition & 1 deletion example/build/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/react-card-flip.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lib/react-card-flip.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/react-card-flip.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/react-card-flip.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ReactCardFlip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ ReactCardFlip.propTypes = {
return new Error(`${componentName} requires two children.`);
}
},
containerStyle: PropTypes.object,
flipDirection: (props, propName, componentName) => {
if (!props[propName]) {
return;
Expand Down

0 comments on commit a4ff768

Please sign in to comment.