From 784d4af96b9b177f55cfbd366ea7661b3ffeb5c1 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Fri, 11 Apr 2025 14:58:57 -0700 Subject: [PATCH] Remove chonky header for single modules Summary: We have precious little screen real estate, esp in E2E tests where we get 320x192 dips. Let's clean this up. Changelog: [Internal] Reviewed By: cortinico, GijsWeterings Differential Revision: D72683491 --- .../rn-tester/js/components/RNTTestDetails.js | 108 ------------------ .../js/components/RNTesterModuleContainer.js | 7 -- 2 files changed, 115 deletions(-) delete mode 100644 packages/rn-tester/js/components/RNTTestDetails.js diff --git a/packages/rn-tester/js/components/RNTTestDetails.js b/packages/rn-tester/js/components/RNTTestDetails.js deleted file mode 100644 index 7c3af618c63d78..00000000000000 --- a/packages/rn-tester/js/components/RNTTestDetails.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @flow strict-local - */ - -import {type RNTesterTheme} from './RNTesterTheme'; -import * as React from 'react'; -import {Button, Platform, StyleSheet, Text, View} from 'react-native'; - -function RNTTestDetails({ - description, - expect, - title, - theme, -}: { - description?: string, - expect?: string, - title: string, - theme: RNTesterTheme, -}): React.Node { - const [collapsed, setCollapsed] = React.useState(true); - - const content = - description == null && expect == null ? null : ( - <> - {description == null ? null : ( - - - Description - - - {description} - - - )} - {expect == null ? null : ( - - - Expectation - - - {expect} - - - )} - - ); - return ( - - - - {title} - - {content != null && ( -