1.0.1 • Published 5 years ago

react-native-piano v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

react-native-piano npm

Usage

Install

npm: npm i --save react-native-piano

yarn: yarn add react-native-piano

Import

ES6 module:

import { Piano } from 'react-native-piano'

Documentation

Properties

Basic

PropTypeDescription
noteRangeRequired objectAn object representing the range of notes to render. Format { first: 'c4', last: 'e5' } in which first and last corresponds to natural notes.
onPlayNoteInputfunctionFunction that fires whenever a play-note event is fired.
onStopNoteInputfunctionFunction that fires whenever a stop-note event is fired.

Questions

Feel free to contact me or create an issue

Inspired by kevinsqi/react-piano.

License

MIT License