Socket
Socket
Sign inDemoInstall

react-native-snow

Package Overview
Dependencies
5
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-snow

Fullscreen snow overlay component for react native


Version published
Weekly downloads
1.2K
increased by85.42%
Maintainers
1
Install size
152 kB
Created
Weekly downloads
 

Readme

Source

react-native-snow

Fullscreen snow overlay component for React Native. This can be used in any view (but should only be used in one place) and this will place a fullscreen overlay of snow on your app, making it easy to apply and remove.

If you are enthusiastic about winter weather or the winter holiday season, you can make your app festive very easily with this component!

Usage

To use, install the npm module:

npm install --save react-native-snow

Then import the Snow component:

import Snow from 'react-native-snow';

Then add it anywhere in your JSX (you should only do this in one place!):

export default class App extends Component<{}> {
  render() {
    return (
      <View>
        ...
        <Snow />
        ...
      </View>
    );
  }
}

Props

Snow.propTypes = {
  // Specify color of snowflakes.
  snowflakesStyle: { color: 'blue' },
  // Specify amount of snowflakes present ('light', 'medium')
  snowfall: 'medium',
};

Thanks

This is heavily inspired by CSS Snowflakes (it is basically a React Native port with some tweaks).

Many thanks to Pavel Ševčík (@pajasevi) for the inspiration!

Keywords

FAQs

Last updated on 09 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc