react-native-snow
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "react-native-snow", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Fullscreen snow overlay component for react native", | ||
@@ -5,0 +5,0 @@ "main": "./src/Snow.js", |
@@ -33,3 +33,3 @@ import React, { Component } from 'react'; | ||
shakeDelay: props.shakeDelay || 0, | ||
offset: this._toNumber(props.offset) || 0, | ||
offset: props.offset || 0, | ||
translateY: new Animated.Value(0), | ||
@@ -41,7 +41,2 @@ translateX: new Animated.Value(0), | ||
// Added to support older versions of react native | ||
_toNumber = (percentString) => { | ||
return +percentString.slice(0, -1) / 100; | ||
} | ||
_handleAppStateChange = (nextAppState) => { | ||
@@ -48,0 +43,0 @@ if (this.state.appState.match(/inactive|background/) && nextAppState === 'active') { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8817
188