1.0.2 âĸ Published 6 years ago
react-native-loop-text v1.0.2
react-native-loop-text
React Native component for smooth text animation like Shazam app
đģ Installation
npm i react-native-loop-text --save
đ Usage
'use strict';
import React from 'react';
import LoopText from 'react-native-loop-text';
const SomeComponent = () => {
return (
<LoopText textArray={["test_1","test_2"]}/>
);
}
}
export default SomeComponent;
Feel free to run or check the LoopTextSample project.
âšī¸ Props
only textArray is Required
Params | Type | Default | Description |
---|---|---|---|
textArray | Array | - | List of text to loop |
delay | Number | 4000 | Delay to swith text |
duration | Number | 1000 | Duration of the transition |
đ¤ How to contribute
Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.