react-native-shimmer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -28,6 +28,11 @@ import React, { | ||
render() { | ||
return (<RNShimmeringView {...this.props} />); | ||
const { direction, ...props } = this.props; | ||
return (<RNShimmeringView shimmeringDirection={direction} {...props} />); | ||
} | ||
} | ||
const RNShimmeringView = requireNativeComponent('RNShimmeringView', Shimmer); | ||
const RNShimmeringView = requireNativeComponent('RNShimmeringView', Shimmer, { | ||
nativeOnly: { | ||
shimmeringDirection: true, | ||
}, | ||
}); |
{ | ||
"name": "react-native-shimmer", | ||
"version": "0.2.0", | ||
"description": "Simple shimmering effect for any view in React Native", | ||
"version": "0.2.1", | ||
"description": "Simple shimmering effect in React Native", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
# react-native-shimmer | ||
Simple shimmering effect for any view in React Native. Based on [Shimmer](https://github.com/facebook/Shimmer). | ||
Simple shimmering effect in React Native. Based on [Shimmer](https://github.com/facebook/Shimmer). | ||
@@ -9,7 +9,7 @@ ![Shimmer](https://github.com/facebook/Shimmer/blob/master/shimmer.gif?raw=true) | ||
`$ npm install react-native-shimmer --save` | ||
`$ yarn add react-native-shimmer` | ||
### Option: With [`rnpm`](https://github.com/rnpm/rnpm) | ||
### Option: With `react-native link` | ||
`$ rnpm link` | ||
`$ react-native link react-native-shimmer` | ||
@@ -30,3 +30,3 @@ ### Option: Manually | ||
NOTE: `Shimmer` may only have one child. | ||
NOTE: `Shimmer` may only have one child and currently doesn't work with `View`. | ||
@@ -57,2 +57,2 @@ ```js | ||
[MIT License](http://opensource.org/licenses/mit-license.html). Shimmer is under BSD license. © Joel Arvidsson 2016 | ||
[MIT License](http://opensource.org/licenses/mit-license.html). Shimmer is under BSD license. © Joel Arvidsson 2016-now |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
72184
32