From 586c09ee9039bb38feac6bba5b61ba053b160e27 Mon Sep 17 00:00:00 2001 From: "Tanner W. Stokes" Date: Tue, 12 Oct 2021 17:37:23 -0400 Subject: [PATCH] Wrap NavigationContainer with SafeAreaView. --- .../components/editor-help/index.native.js | 226 +++++++++--------- 1 file changed, 116 insertions(+), 110 deletions(-) diff --git a/packages/editor/src/components/editor-help/index.native.js b/packages/editor/src/components/editor-help/index.native.js index 94fab0f006623c..90032046cdfdc7 100644 --- a/packages/editor/src/components/editor-help/index.native.js +++ b/packages/editor/src/components/editor-help/index.native.js @@ -2,7 +2,7 @@ * External dependencies */ import { kebabCase } from 'lodash'; -import { Text, ScrollView, StyleSheet, View } from 'react-native'; +import { Text, SafeAreaView, ScrollView, StyleSheet, View } from 'react-native'; import { TransitionPresets } from '@react-navigation/stack'; /** @@ -86,119 +86,125 @@ function EditorHelpTopics( { close, isVisible, onClose } ) { contentStyle={ styles.contentContainer } testID="editor-help-modal" > - - + - - - - - { title } - - - - { ( { listProps } ) => { - const contentContainerStyle = StyleSheet.flatten( - listProps.contentContainerStyle - ); - return ( - - - - { __( 'The basics' ) } - - { /* Print out help topics */ } - { HELP_TOPICS.map( - ( { label, icon } ) => { - const labelSlug = kebabCase( - label - ); - return ( - - ); - } - ) } - { + + + + + + { title } + + + + { ( { listProps } ) => { + const contentContainerStyle = StyleSheet.flatten( + listProps.contentContainerStyle + ); + return ( + + - { __( 'Get support' ) } + { __( 'The basics' ) } - } - { - { + const labelSlug = kebabCase( + label + ); + return ( + + ); } - /> - } - { - - } - - - ); - } } - - - - { /* Print out help detail screens */ } - { HELP_TOPICS.map( ( { view, label } ) => { - const labelSlug = kebabCase( label ); - return ( - - ); - } ) } - + ) } + { + + { __( 'Get support' ) } + + } + { + + } + { + + } + + + ); + } } + + + + { /* Print out help detail screens */ } + { HELP_TOPICS.map( ( { view, label } ) => { + const labelSlug = kebabCase( label ); + return ( + + ); + } ) } + + ); }