Skip to content

Commit 44f9d0d

Browse files
authored
Merge pull request Kureev#104 from arthur31416/master
Added blurAmount to defaultProps
2 parents 0ce1afb + 676de66 commit 44f9d0d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const Menu = React.createClass({
8282
- `xlight` - extra light blur type
8383
- `light` - light blur type
8484
- `dark` - dark blur type
85-
- `blurAmount` (Number) - blur amount effect
85+
- `blurAmount` (Default: 10, Number) - blur amount effect
8686
- `0-100` - Adjusts blur intensity
8787

8888
*Note: `blurAmount` does not refresh with Hot Reloading. You must a refresh the app to view the results of the changes*

src/BlurView.ios.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ class BlurView extends Component {
1717

1818
BlurView.propTypes = {
1919
blurType: PropTypes.string,
20-
blurAmount: PropTypes.number,
20+
blurAmount: PropTypes.number.isRequired,
21+
};
22+
23+
BlurView.defaultProps = {
24+
blurAmount: 10,
2125
};
2226

2327
const NativeBlurView = requireNativeComponent('BlurView', BlurView);

0 commit comments

Comments
 (0)