react-native-blur
react-native-blur copied to clipboard
iOS+Android - animating BlurView
Allow animations to update blur view.
Summary
In order for the blur view to react to changes via animated props, the effect needed to be set to nil just before the new one is created. Without this change, the blur view would not update.
This also required changes on android, as I required a setNativeProps function to be exposed, it was already exposed on iOS
Test Plan
Clone for an example.
https://github.com/kyle-ssg/reanimated2-experiments
Compatibility
| OS | Implemented |
|---|---|
| iOS | ✅ |
| Android | ✅ |
Checklist
- [x] I have tested this on a device and a simulator
- [ ] I added the documentation in
README.md- N/A - [ ] I mentioned this change in
CHANGELOG.md-There isn't a CHANGELOG.md.. - [ ] I updated the typed files (TS and Flow) - N/A
- [ ] I added a sample use of the API in the example project (
example/App.js) - N/A
If this is still valid, please rebase against master, else you can close this PR
This is working as of 4.3.2, I just tested it