Package Exports
- rainy-background-reactnative
- rainy-background-reactnative/src/Rain.jsx
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rainy-background-reactnative) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 |