react-native-piano

1.0.1 • Public • Published

react-native-piano npm

react-native-piano screenshot

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

Prop Type Description
noteRange Required object An object representing the range of notes to render. Format { first: 'c4', last: 'e5' } in which first and last corresponds to natural notes.
onPlayNoteInput function Function that fires whenever a play-note event is fired.
onStopNoteInput function Function 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

Readme

Keywords

Package Sidebar

Install

npm i react-native-piano

Weekly Downloads

26

Version

1.0.1

License

MIT

Unpacked Size

32.8 kB

Total Files

9

Last publish

Collaborators

  • mrsoneji