davecoffin / nativescript-blur

Apache License 2.0
14 stars 7 forks source link

Blur Off not working on android #3

Open yavuzmercan opened 6 years ago

shiv19 commented 6 years ago

can you provide more details please

yavuzmercan commented 6 years ago

I'm doing trials in the android platform

I want to apply effects on the dimmer or direct image

by the way I use nativescript angular template

html

<Image stretch="aspectFill" id="blurMe" src="https://mymodernmet.com/wp/wp-content/uploads/2017/09/albert-dros-landscape-photography-tips-4.jpg"></Image>

typescript

turnBlurOn(args) { let kittyView = this.page.getViewById('blurMe'); this.blur.on(kittyView, 'blurMe', 25, 'dark').then((src) => { console.log('Kitty has become blurry.'); }).catch(e => { console.dir(e); }); }

turnBlurOff() { this.blur.off('blurMe'); }

shiv19 commented 6 years ago

Please read the demo in my repo https://github.com/shiv19/nativescript-blur/blob/master/demo/app/main-view-model.ts

It shows you how to use this plugin on Android

yavuzmercan commented 6 years ago

read the demo

blurOn is work but BlurOff not work

shiv19 commented 6 years ago

The way you are using blurOff won't work on android. see my repo. not this one. this one has some old code. because PR hasn't been merged yet

davecoffin commented 6 years ago

Crap Shiva I never accepted your pull request sorry! I'll do that later.