Skip to content

Lann892/rainy-background-reactnative

Repository files navigation

rainy-background-reactnative

It can be used for ios and android as nice rainy background!

Usage

Install module:

npm install --save rainy-background-reactnative

or

yarn add rainy-background-reactnative

Add it to any View in you app:

import Rain from 'rainy-background-reactnative';

export default function App() {
  return (
    <View>
      ...
      <Rain fullScreen rainCount={100} fallSpeed="medium" />
    </View>
  );
}

Snow props

Props Type Description Default
rainCount Integer How many rain to render. 100
fallSpeed slow , medium, fast How fast rain will fall. medium
fullScreen Boolean If true component will always take screen width and height. If false it will take 100% parent width and height. Usefult if you want rain background to fill jsut a part of your screen. false

About

Rainy background for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published