0.3.1 • Published 6 months ago

react-native-selectable-lyrics v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

react-native-selectable-lyrics

A selectable text with react native

Installation

npm install react-native-selectable-lyrics

Usage

import { SelectableTextView } from 'react-native-selectable-lyrics';
const sentences = [
  {
    content: 'this is first sentence',
    index: 1,
    // another props if you want, but value's type must be String
    // ex: text: "example"
  },
  { content: " and im' second", index: 2 },
];
// ...

<SelectableTextView
  menuItems={['Comment', 'Height']} // required
  playingIndex={1}
  playingColor="#dfe8ff"
  textColor="#667280"
  onSelection={(event) => {
    console.log('onSelection: ', event.nativeEvent);
  }}
  onClick={(event) => console.log('onClick: ', event.nativeEvent)}
  sentences={sentences} // required
  fontSize="16"
/>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.3.0

6 months ago

0.1.2

6 months ago

0.2.0

6 months ago

0.3.1

6 months ago

0.1.0

9 months ago