1.0.0 • Published 3 years ago

react-native-snow-bg v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

react-native-snow-bg

React Native animated snow background theme. Snowlakes have randomized style - look, opacity, size and position and custom animation - fall, rotation and "shake" movement from left to right.

It can be used for ios and android as nice winter theme addition!

npm.io

Usage

Install module:

npm install --save react-native-snow-bg

or

yarn add react-native-snow-bg

Add it to any View in you app:

import Snow from 'react-native-snowflakes';

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

Snow props

PropsTypeDescriptionDefault
snowflakesCountIntegerHow many snowflakes to render.100
fallSpeedslow , medium, fastHow fast snowflakes will fall.medium
fullScreenBooleanIf true component will always take screen width and height. If false it will take 100% parent width and height. Usefult if you want snow background to fill jsut a part of your screen.false

React Native Epicode Academy

This package is a part of React Native Epicode Academy YouTube series.