1.0.0 • Published 1 year ago

wavy-header-react-native v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

wavy-header-react-native

a wavy header background for react-native

Installation

npm install wavy-header-react-native

Usage

import { WavyBackground } from 'wavy-header-react-native';

// ...

<WavyBackground
  height={140}
  width={1100}
  amplitude={30}
  frequency={4}
  offset={100}
  color={'#06D6BC'}
  maxHeight={290}
  style={styles.wavesStyle}
  bottom
/>;

Example

Utilization

import WavyBackground from 'react-native-wavy-background';

// ...

<WavyBackground
  height={140}
  width={1100}
  amplitude={30}
  frequency={4}
  offset={100}
  color={'#06D6BC'}
  maxHeight={290}
  style={styles.wavesStyle}
  bottom
/>;

Props:

NameDefaultRequiredDescription
widthnullyeswidth of the wave.
heightnullyesheight of the wave.
frequencynullyesnumber of waves in the given length.
maxHeightnullyesmaximum area covered by wave.
stylenullyesstyle of the wave
amplitudenullyesdistance from rest to crest.
offsetnullyesheight of two wave shapes.
color'#06D6BC'noColor inside the wave shape.
bottom'false'noIf the wave need to be in bottom.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

1.0.0

1 year ago

0.1.0

1 year ago