Merge pull request #104 from arthur31416/master

Added blurAmount to defaultProps
This commit is contained in:
Alexey 2016-10-31 16:15:23 +01:00 committed by GitHub
commit 44f9d0dcc7
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,7 @@ const Menu = React.createClass({
- `xlight` - extra light blur type
- `light` - light blur type
- `dark` - dark blur type
- `blurAmount` (Number) - blur amount effect
- `blurAmount` (Default: 10, Number) - blur amount effect
- `0-100` - Adjusts blur intensity
*Note: `blurAmount` does not refresh with Hot Reloading. You must a refresh the app to view the results of the changes*

View File

@ -17,7 +17,11 @@ class BlurView extends Component {
BlurView.propTypes = {
blurType: PropTypes.string,
blurAmount: PropTypes.number,
blurAmount: PropTypes.number.isRequired,
};
BlurView.defaultProps = {
blurAmount: 10,
};
const NativeBlurView = requireNativeComponent('BlurView', BlurView);