Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ViewChordsButton extends Component {
- handleOpenModal = () => {
- this.props.openChordsModal(); // call openChordsModal
- };
- render() {
- return (
- <View style={this.props.style}>
- <Button
- raised
- icon={{ name: 'library-music'}}
- title="View Transposed Chords"
- backgroundColor="#2196F3"
- onPress={this.handleOpenModal} // create an arrow fn
- />
- </View>
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement