diff --git a/README.md b/README.md index 275b423..78f7e03 100644 --- a/README.md +++ b/README.md @@ -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* diff --git a/src/BlurView.ios.js b/src/BlurView.ios.js index 48caaeb..341b72d 100644 --- a/src/BlurView.ios.js +++ b/src/BlurView.ios.js @@ -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);