Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Update RichTextToolbar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aurimasmi authored May 18, 2021
1 parent 815e853 commit 0311d6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/RichTextToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ export default class RichTextToolbar extends Component {
if (this.props.onPressAddImage) {
this.props.onPressAddImage();
}
case actions.openCamera:
this.state.editor.prepareInsert();
if (this.props.onPressOpenCamera) {
this.props.onPressOpenCamera();
}
break;
break;
}
Expand All @@ -186,4 +191,4 @@ const styles = StyleSheet.create({
backgroundColor: 'red'
},
defaultUnselectedButton: {}
});
});

0 comments on commit 0311d6f

Please sign in to comment.