react-native-loop-text
Version:
text animation loop like shazam for smooth instruction
45 lines (30 loc) âĸ 1.24 kB
Markdown
React Native component for smooth text animation like Shazam app

`npm i react-native-loop-text --save`
```javascript
'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](https://github.com/yelkamel/LoopTextSample) project.
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 |
Have an idea? Found a bug? Please raise to [ISSUES](https://github.com/yelkamel/react-native-loop-text/issues).
Contributions are welcome and are greatly appreciated!
Every little bit helps, and credit will always be given.