File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
requireNativeComponent ,
6
6
DeviceEventEmitter ,
7
7
ViewPropTypes ,
8
+ Platform ,
8
9
} from 'react-native' ;
9
10
10
11
const OVERLAY_COLORS = {
@@ -65,8 +66,8 @@ class BlurView extends Component {
65
66
if ( this . props . children != null ) {
66
67
throw new Error (
67
68
'[ReactNativeBlur]: BlurView cannot contain any child views on Android. ' +
68
- 'You should use "position: absolute" on the BlurView, ' +
69
- 'and place other views in front of it.'
69
+ 'You should use "position: absolute" on the BlurView, ' +
70
+ 'and place other views in front of it.'
70
71
) ;
71
72
}
72
73
@@ -92,7 +93,10 @@ BlurView.propTypes = {
92
93
blurRadius : PropTypes . number ,
93
94
downsampleFactor : PropTypes . number ,
94
95
overlayColor : PropTypes . string ,
95
- viewRef : PropTypes . number . isRequired ,
96
+ viewRef : Platform . select ( {
97
+ android : PropTypes . number . isRequired ,
98
+ default : PropTypes . number ,
99
+ } ) ,
96
100
} ;
97
101
98
102
BlurView . defaultProps = {
You can’t perform that action at this time.
0 commit comments