react-native-selectable-lyrics
v0.4.0
Published
A selectable text with react native
Downloads
19
Maintainers
Readme
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