Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class ViewChordsButton extends Component {
  2. handleOpenModal = () => {
  3. this.props.openChordsModal(); // call openChordsModal
  4. };
  5.  
  6. render() {
  7. return (
  8. <View style={this.props.style}>
  9. <Button
  10. raised
  11. icon={{ name: 'library-music'}}
  12. title="View Transposed Chords"
  13. backgroundColor="#2196F3"
  14. onPress={this.handleOpenModal} // create an arrow fn
  15. />
  16. </View>
  17. );
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement