1.2.5 • Published 2 years ago
react-native-waves v1.2.5
react-native-waves
Create beautiful wave animations using React Native
Requirements
Demo
2 waves - bottom | 2 waves - top/bottom | 4 waves - top/bottom |
---|---|---|
Installation
npm i react-native-waves
Usage
import Wave from "react-native-waves"
<Wave placement="bottom"/>
Examples
Complex Wave
<Wave placement="bottom" speed={20} maxPoints={8} delta={30}/>
Multiple Waves
<Wave placement="top" />
<Wave placement="top" gap={20} color="#003d66"/>
<Wave placement="bottom" />
<Wave placement="bottom" gap={20} color="#003d66"/>
Performance
- Simulator can run up to 4/6 waves at 60fps depending on the device.
- This project was optimized to achieve full performance on any physical device.
- UI updates are handled by react-native-reanimated to optimize rendering and achieve 60fps.
Props (Wave)
prop | type | value | description | more info |
---|---|---|---|---|
placement | string | bottom | view position | top or bottom of the screen |
speed | number | 7.5 | animation speed | |
maxPoints | number | 2 | number of wave points | |
width | number | screen width | wave width | |
height | number | screen height / 4 | wave height | |
delta | number | 60 | wave delta | wave bounce amount |
color | string | #005c99 | wave color | |
gap | number | undefined | wave gap | gap between waves with equal placement |
flip | boolean | false | flip wave 180deg |
Run Example App ( Expo )
Clone app
git clone https://github.com/NxRoot/react-native-waves.git
cd react-native-waves/example
IOS
npm run ios
Android
npm run android
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.13
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago