react-native-animation-layout
Version:
Fully customizable Animation Layouts for React Native.
85 lines (50 loc) • 2.94 kB
Markdown
<img alt="React Native Animation Layout" src="https://github.com/WrathChaos/react-native-animation-layout/blob/master/assets/logo.png" width="1050"/>
Custom & Ready to GO partially customizable Animation Layouts for React Native.
[](https://www.npmjs.com/package/react-native-animation-layout)
[](https://www.npmjs.com/package/react-native-animation-layout)

[](https://opensource.org/licenses/MIT)
[](https://github.com/prettier/prettier)
<p align="center">
<img alt="React Native Animation Layout" src="https://github.com/WrathChaos/react-native-dynamic-search-bar/blob/master/assets/Screenshots/SearchGIF.gif" width="49.7%"/>
</p>
Add the dependency:
```ruby
npm i react-native-animation-layout
```
```
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
```
```ruby
import { CustomLayoutSpring } from "react-native-animation-layout";
// Simpliest way of adding the layout animation
componentWillUpdate() {
LayoutAnimation.configureNext(CustomLayoutSpring());
}
OR
// Put this code where you need to update your list or component
LayoutAnimation.configureNext(CustomLayoutSpring());
```
| Property | Type | Default | Description |
| ------------------- | :-------: | :---------------: | --------------------------------------------------------------------------------- |
| duration | number | 700 | change the animation duration as millisecond |
| springDamping | number | 13 | change the font size |
| Property | Type | Default | Description |
| ------------------- | :-------: | :---------------: | --------------------------------------------------------------------------------- |
| duration | number | 700 | change the animation duration as millisecond |
- [x] LICENSE
- [ ] Write an article about the lib on Medium
FreakyCoder, kurayogun@gmail.com
React Native Animation Layout Library is available under the MIT license. See the LICENSE file for more info.