From afad68f1a83995eaa42a8f1c7c636ccef8914797 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 31 Aug 2022 11:44:02 -0700 Subject: [PATCH] Change Wrapper of InspectorPanel from View to SafeAreaView (#34500) Summary: Currently, the `InspectorPanel` component is wrapped in `View`, which is a little difficult to click the panel button when in a device with a notch screen. ## Changelog [General] [Fixed] - Change Wrapper of `InspectorPanel` from `View` to `SafeAreaView` Pull Request resolved: https://github.com/facebook/react-native/pull/34500 Test Plan: **From:** **To:** Reviewed By: cipolleschi Differential Revision: D39175153 Pulled By: lunaleaps fbshipit-source-id: cba8b78a0dd3cbac27ee098dd1bb006d7af25987 --- Libraries/Inspector/InspectorPanel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/Inspector/InspectorPanel.js b/Libraries/Inspector/InspectorPanel.js index cce08cd849dd1b..8b113f33b9da84 100644 --- a/Libraries/Inspector/InspectorPanel.js +++ b/Libraries/Inspector/InspectorPanel.js @@ -19,6 +19,7 @@ const StyleSheet = require('../StyleSheet/StyleSheet'); const Text = require('../Text/Text'); const TouchableHighlight = require('../Components/Touchable/TouchableHighlight'); const View = require('../Components/View/View'); +import SafeAreaView from '../Components/SafeAreaView/SafeAreaView'; import type {ViewStyleProp} from '../StyleSheet/StyleSheet'; @@ -84,7 +85,7 @@ class InspectorPanel extends React.Component { contents = {this.renderWaiting()}; } return ( - + {!this.props.devtoolsIsOpen && contents} { onClick={this.props.setTouchTargeting} /> - + ); } }