JSPM

react-native-snow-bg

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q75290F
  • License MIT

React Native Snow animated background component

Package Exports

  • react-native-snow-bg

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 (react-native-snow-bg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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!

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

Props Type Description Default
snowflakesCount Integer How many snowflakes to render. 100
fallSpeed slow , medium, fast How fast snowflakes 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 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.