react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

[Feature request] Debug view for viewing device insets

Open luisnaranjo733 opened this issue 5 years ago • 1 comments

Would be awesome if this library could export a RN view that uses absolute positioning to visually show the device insets from useSafeArea().

Apps that use this library could choose to render this view in their developer scenarios to their discretion so they can visually make sure their views are interacting with the safe area in the way they would expect.

If the library maintainers think this would be a good idea, I'd be happy to open a PR for this.

luisnaranjo733 avatar Apr 15 '20 19:04 luisnaranjo733

I think it'd be ok to add this as long as it isn't exported by default (since RN doesn't have tree shaking) - maybe if it was under something like import DebugView from "react-native-safe-area-context/DebugView"

jacobp100 avatar Feb 14 '23 15:02 jacobp100