react-native-shimmer
Advanced tools
Comparing version 0.0.0 to 0.1.0
13
index.js
import React, { | ||
Component, | ||
PropTypes, | ||
requireNativeComponent | ||
} from 'react'; | ||
import { | ||
requireNativeComponent, | ||
} from 'react-native'; | ||
@@ -10,3 +13,3 @@ | ||
animating: PropTypes.bool, | ||
direction: PropTypes.oneOf('up', 'down', 'left', 'right'), | ||
direction: PropTypes.oneOf(['up', 'down', 'left', 'right']), | ||
pauseDuration: PropTypes.number, | ||
@@ -18,7 +21,7 @@ animationOpacity: PropTypes.number, | ||
beginFadeDuration: PropTypes.number, | ||
endFadeDuration: PropTypes.number | ||
endFadeDuration: PropTypes.number, | ||
}; | ||
static defaultProps = { | ||
animating: true | ||
animating: true, | ||
}; | ||
@@ -31,2 +34,2 @@ | ||
var RNShimmeringView = requireNativeComponent('RNShimmeringView', Shimmer); | ||
const RNShimmeringView = requireNativeComponent('RNShimmeringView', Shimmer); |
{ | ||
"name": "react-native-shimmer", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "Simple shimmering effect for any view in React Native", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "eslint index.js" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"react-component", | ||
"react-native-component", | ||
"react", | ||
"mobile", | ||
"ios", | ||
"ui", | ||
"shimmer", | ||
"activityindicator", | ||
"indeterminate", | ||
"spinner", | ||
"animation" | ||
], | ||
"author": { | ||
@@ -13,3 +27,17 @@ "name": "Joel Arvidsson", | ||
}, | ||
"license": "MIT" | ||
"homepage": "https://github.com/oblador/react-native-shimmer", | ||
"bugs": { | ||
"url": "https://github.com/oblador/react-native-shimmer/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/oblador/react-native-shimmer.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel": "^6.5.2", | ||
"babel-eslint": "^6.0.4", | ||
"eslint": "^2.9.0", | ||
"eslint-plugin-react": "^5.0.1" | ||
} | ||
} |
@@ -32,3 +32,3 @@ # react-native-shimmer | ||
```js | ||
import Shimmer from `react-native-shimmer`; | ||
import Shimmer from 'react-native-shimmer'; | ||
@@ -35,0 +35,0 @@ <Shimmer> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
27
0
1
0
73277
4
27