Skip to content

Commit f3ba2ee

Browse files
committed
Basic example ios reverse toggle logic
1 parent 70799ec commit f3ba2ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/Basic/index.ios.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Basic extends Component {
2020
constructor() {
2121
super()
2222
this.state = {
23-
hideBlurs: false,
23+
showBlurs: true,
2424
blurBlurType: 'light',
2525
blurActiveSegment: 1,
2626
vibrancyBlurType: 'dark',
@@ -54,11 +54,9 @@ class Basic extends Component {
5454
resizeMode='cover'
5555
style={styles.img}/>
5656

57-
{(this.state.hideBlurs
57+
{(this.state.showBlurs
5858

59-
? null
60-
61-
: <View style={styles.container}>
59+
? <View style={styles.container}>
6260

6361
<BlurView
6462
blurType={this.state.blurBlurType}
@@ -87,13 +85,15 @@ class Basic extends Component {
8785
</VibrancyView>
8886

8987
</View>
88+
89+
: null
9090
)}
9191

9292
<View
9393
style={styles.blurToggle}>
9494
<Switch
95-
onValueChange={(value) => this.setState({hideBlurs: value})}
96-
value={this.state.hideBlurs} />
95+
onValueChange={(value) => this.setState({showBlurs: value})}
96+
value={this.state.showBlurs} />
9797
</View>
9898

9999
</View>

0 commit comments

Comments
 (0)