You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to create a Modal that only takes up part of the screen (on iPad) the problem is that I want the surrounding area to have a transparent background. What I did was wrap the Modal component with a View and applied a background color to the style of that view, this seems to successfully pass down the background color to the area surrounding the modal container. So i tried applying a transparent background to that view and during the animation it is transparent but once the animation stops the area surrounding the modal is black. Is there any way to achieve this behavior?
in your render method where you are rendering Modal, pass a prop transparent={true}
add a single View child to your modal (put all other things inside this View) and apply style to it with backgroundColor = 'rgba(r, g, b, a)' as described above
facebook
locked as resolved and limited conversation to collaborators
Jul 21, 2018
I have tried to create a Modal that only takes up part of the screen (on iPad) the problem is that I want the surrounding area to have a transparent background. What I did was wrap the Modal component with a View and applied a background color to the style of that view, this seems to successfully pass down the background color to the area surrounding the modal container. So i tried applying a transparent background to that view and during the animation it is transparent but once the animation stops the area surrounding the modal is black. Is there any way to achieve this behavior?
The text was updated successfully, but these errors were encountered: