rainy-background-reactnative
v1.1.3
Published
Rainy background for React Native
Downloads
34
Maintainers
Readme
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
|