Skip to content

Commit

Permalink
iconTint android undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed Jan 5, 2021
1 parent 5927ced commit 4772607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pell-rich-editor",
"description": "React Native Rich Editor",
"version": "1.6.2",
"version": "1.6.3",
"main": "src/index.js",
"author": {
"name": "wxik",
Expand Down
4 changes: 3 additions & 1 deletion src/RichToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class RichToolbar extends Component {
static defaultProps = {
actions: defaultActions,
disabled: false,
iconTint: '#71787F',
iconSize: 20,
iconGap: 12,
};
Expand Down Expand Up @@ -222,6 +223,7 @@ export default class RichToolbar extends Component {
: selected
? that.props.selectedIconTint
: that.props.iconTint;
console.log('tintColor', tintColor);
return (
<TouchableOpacity
key={action}
Expand All @@ -235,7 +237,7 @@ export default class RichToolbar extends Component {
<Image
source={icon}
style={{
tintColor: tintColor,
tintColor,
height: iconSize,
width: iconSize,
}}
Expand Down

0 comments on commit 4772607

Please sign in to comment.