Styling: how to add a shadow around a container?

I want to add a shadow around the container, but all I get is a shadow around the elements inside the container.

Below are the style settings for the container component.

On the view panel, it shows the shadow as it should be.

However, in the preview app on iPhone the shadow is around the elements inside the container and not around the container.