From f3ba2ee5d26ea73ef72ee1a5b286e973ccff157d Mon Sep 17 00:00:00 2001 From: Brad Adams Date: Wed, 9 Nov 2016 01:19:32 +0100 Subject: [PATCH] Basic example ios reverse toggle logic --- examples/Basic/index.ios.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/Basic/index.ios.js b/examples/Basic/index.ios.js index 0a1b006..21a9907 100644 --- a/examples/Basic/index.ios.js +++ b/examples/Basic/index.ios.js @@ -20,7 +20,7 @@ class Basic extends Component { constructor() { super() this.state = { - hideBlurs: false, + showBlurs: true, blurBlurType: 'light', blurActiveSegment: 1, vibrancyBlurType: 'dark', @@ -54,11 +54,9 @@ class Basic extends Component { resizeMode='cover' style={styles.img}/> - {(this.state.hideBlurs + {(this.state.showBlurs - ? null - - : + ? + + : null )} this.setState({hideBlurs: value})} - value={this.state.hideBlurs} /> + onValueChange={(value) => this.setState({showBlurs: value})} + value={this.state.showBlurs} />