react-native-screens
react-native-screens copied to clipboard
feat: blurred modal background
Description
Introduces an option to blur screens behind a transparent modal.
So far only a POC on iOS, if you would like this feature I am happy to finalize the implementation by exposing a new prop and add android support.
Before
https://user-images.githubusercontent.com/1652607/104965523-2b104e00-59df-11eb-8d67-996e0eb280ff.mov
After
https://user-images.githubusercontent.com/1652607/104965510-264b9a00-59df-11eb-97d5-3b37110c2e1a.mov
@WoLewicki Is this a feature you would like to have included in the project if finished? 😀
Could you transfer the example to TestsExample project here too? I would be glad to test it for sure. Also, could you add a .mov with how does it look before applying these changes?
@WoLewicki I transferred the example to TestExample and updated the description with before and after video.
@WoLewicki Still waiting for your opinion on this 🙂
Sorry for late response on this! Could you add something similar on Android transparent modals? We are aiming at having the consistent API between the platforms and this seems like a nice addition for sure! It would need to be controlled by some prop of the Screen component and would require some testing, but for sure it is worth adding.
@henninghall @WoLewicki ideally the modal should close in the same way it opened. also does it behave the same way on android ?
@WoLewicki Absolutely I will add it on Android as well, just wanted to confirm that this was a feature you would merge first. I will get back to work on this whenever I have the chance.
@a-eid How the modal open and close is not really related to this PR
@henninghall it opens sliding up, it should probably slides down to close
current behavior is that it slides to open and fades to close.