@@ -46,10 +46,10 @@ export default class Basic extends Component {
46
46
47
47
renderBlurs ( ) {
48
48
const tintColor = this . state . blurBlurType === 'xlight' ? 'black' : 'white' ;
49
+ const platform = Platform . OS === 'ios' ? 'iOS' : 'Android' ;
49
50
50
51
return (
51
52
< View style = { styles . container } >
52
-
53
53
< View style = { styles . blurContainer } >
54
54
{ /*
55
55
BlurView is supported on both iOS and Android.
@@ -62,27 +62,25 @@ export default class Basic extends Component {
62
62
blurAmount = { 100 }
63
63
style = { [ styles . blurView ] } >
64
64
< Text style = { [ styles . text , { color : tintColor } ] } >
65
- Blur component (iOS )
65
+ Blur component ({ platform } )
66
66
</ Text >
67
- { {
68
- Platform. OS === "ios" &&
67
+ { Platform . OS === 'ios' &&
69
68
< SegmentedControlIOS
70
69
values = { [ 'xlight' , 'light' , 'dark' , 'regular' , 'prominent' ] }
71
70
selectedIndex = { this . state . blurActiveSegment }
72
71
onChange = { ( event ) => { this . _onBlurChange ( event ) ; } }
73
72
onValueChange = { ( value ) => { this . _onBlurValueChange ( value ) ; } }
74
73
tintColor = { tintColor }
75
- />
76
- } }
74
+ /> }
77
75
</ BlurView >
78
76
</ View >
79
77
80
- { /*
81
- VibrancyView is only supported on iOS, and must contain child views,
82
- otherwise the vibrancy effect doesn't work.
83
- */ }
84
- { {
85
- Platform. OS === " ios" &&
78
+ {
79
+ /*
80
+ VibrancyView is only supported on iOS, and must contain child views,
81
+ otherwise the vibrancy effect doesn't work.
82
+ */
83
+ Platform . OS === ' ios' &&
86
84
< VibrancyView
87
85
blurType = { this . state . vibrancyBlurType }
88
86
blurAmount = { 10 }
@@ -100,7 +98,7 @@ export default class Basic extends Component {
100
98
tintColor = "white"
101
99
/>
102
100
</ VibrancyView >
103
- } }
101
+ }
104
102
</ View >
105
103
) ;
106
104
}
0 commit comments