mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-30 18:25:09 +00:00
Merge pull request #104 from arthur31416/master
Added blurAmount to defaultProps
This commit is contained in:
commit
44f9d0dcc7
@ -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*
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user