https://github.com/wrathchaos/react-native-shake-text
https://github.com/wrathchaos/react-native-shake-text
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wrathchaos/react-native-shake-text
- Owner: WrathChaos
- Created: 2021-08-21T11:03:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T06:21:18.000Z (about 2 years ago)
- Last Synced: 2025-05-10T04:05:04.720Z (5 months ago)
- Language: TypeScript
- Size: 8.5 MB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/WrathChaos/react-native-shake-text)
[](https://github.com/WrathChaos/react-native-shake-text)
[](https://www.npmjs.com/package/react-native-shake-text)
[](https://www.npmjs.com/package/react-native-shake-text)

[](https://opensource.org/licenses/MIT)
[](https://github.com/prettier/prettier)
![]()
# Installation
Add the dependency:
```bash
npm i react-native-shake-text
```## Peer Dependencies
Zero Dependency
# Usage
## Import
```jsx
import ShakeText from "react-native-shake-text";
```## Fundamental Usage
```jsx
import ShakeText from "react-native-shake-text";
shakeTextRef: ShakeText | null = null;
(this.shakeTextRef = ref)}
>
Shake Text{
this.shakeEmailRef?.startShakeAnimation();
}}>
```### Start the Shake Animation
Simply you just need to call the `startShakeAnimation` by its reference
```jsx
this.shakeEmailRef?.startShakeAnimation();
```## Example Project 😍
You can checkout the example project 🥰
Simply run
- `npm i`
- `react-native run-ios/android`should work of the example project.
# Configuration - Props
## Fundamentals
There is a prop-drilling for both animated view and the text. You can customize anything :)
## Future Plans
- [x] ~~LICENSE~~
- [ ] Write an article about the lib on Medium## Author
FreakyCoder, kurayogun@gmail.com
## License
React Native Shake Text is available under the MIT license. See the LICENSE file for more info.