The code examples in Different Status Bar configuration based on the route set the backgroundColor and don't have any platform-specific references. And the example GIFS show the background color changing on an iOS device with a notch. But according to react-native docs background color doesn't work on iOS (and it didn't when I tried the given example code).
But how were those GIFS generated? There must be a way to do it. At the bottom of the page it says:
The code used for these demos is available as a Snack.
But the snack at that link is obviously not the same code that generated the GIF.
Please correct that link so we can see the actual code that was used to change the background color on iOS.