Skip to content

Commit

Permalink
Merge pull request #197 from devbriguy/patch-1
Browse files Browse the repository at this point in the history
Add prop for tintColor for ActionSheet in Actions #185
  • Loading branch information
kfiroo authored Dec 18, 2016
2 parents 2fe34a8 + 3dda3ec commit 3078e40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class Actions extends React.Component {
this.context.actionSheet().showActionSheetWithOptions({
options,
cancelButtonIndex,
tintColor: this.props.optionTintColor
},
(buttonIndex) => {
let i = 0;
Expand Down Expand Up @@ -91,6 +92,7 @@ Actions.contextTypes = {
Actions.defaultProps = {
onSend: () => {},
options: {},
optionTintColor: '#007AFF',
icon: null,
containerStyle: {},
iconTextStyle: {},
Expand All @@ -99,6 +101,7 @@ Actions.defaultProps = {
Actions.propTypes = {
onSend: React.PropTypes.func,
options: React.PropTypes.object,
optionTintColor: React.PropTypes.string,
icon: React.PropTypes.func,
containerStyle: View.propTypes.style,
iconTextStyle: Text.propTypes.style,
Expand Down

0 comments on commit 3078e40

Please sign in to comment.