1.2.5 • Published 3 years ago

react-native-waves v1.2.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-native-waves

Create beautiful wave animations using React Native

Requirements

Demo

2 waves - bottom2 waves - top/bottom4 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)

proptypevaluedescriptionmore info
placementstringbottomview positiontop or bottom of the screen
speednumber7.5animation speed
maxPointsnumber2number of wave points
widthnumberscreen widthwave width
heightnumberscreen height / 4wave height
deltanumber60wave deltawave bounce amount
colorstring#005c99wave color
gapnumberundefinedwave gapgap between waves with equal placement
flipbooleanfalseflip 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

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago