Skip to content

Commit

Permalink
Fixed tintColor prop #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Cancian committed Feb 23, 2022
1 parent 8ceb13c commit a8cf665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ActionSheetCustom.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class ActionSheet extends React.Component {
_createButton (title, index) {
const styles = getMergedStyles(this.props.styles)
const { buttonUnderlayColor, cancelButtonIndex, destructiveButtonIndex, disabledIndexes, disabledColor } = this.props
const tintColor = this.props.tintColor || this._isDarkMode() ? "#4793FF" : "#007AFF"
const tintColor = this.props.tintColor || (this._isDarkMode() ? "#4793FF" : "#007AFF")
const fontColor = destructiveButtonIndex === index ? WARN_COLOR : tintColor
const isCancel = cancelButtonIndex === index
const buttonBoxStyle = isCancel ? styles.cancelButtonBox : styles.buttonBox
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": "@alessiocancian/react-native-actionsheet",
"version": "3.1.1",
"version": "3.1.2",
"description": "Cross platform ActionSheet. This component implements a custom ActionSheet and provides the same way to drawing it on the defferent platforms(iOS and Android). Actually, In order to keep the best effect, it still uses the ActionSheetIOS on iOS.",
"main": "lib/index.js",
"types": "lib/ts/index.d.ts",
Expand Down

0 comments on commit a8cf665

Please sign in to comment.