UNPKG

react-native-piano-keyboard

Version:

A beautiful and customizable piano keyboard component for React Native

17 lines (16 loc) 332 B
export interface IPianoKeyboardProps { startKey?: string; endKey?: string; keyDisabled?: boolean; onPressKey: (key: string) => void; } export type TPianoKey = { isWhite: boolean; midi: number; note: string; left: number; }; export type TKeyboardState = { width: number; keys: TPianoKey[]; };