Skip to content

mrsoneji/react-native-piano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published