1.2.5 • Published 2 years ago

react-native-waves v1.2.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

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