From 566d30f88ad8f6fa32d115df2839d4be6c6ff4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateo=20Guzm=C3=A1n?= Date: Fri, 1 Nov 2024 07:36:05 -0700 Subject: [PATCH] fix(rn-tester): playground description not visible in dark mode (#47346) Summary: The informational description in the `RNTesterPlayground` is not visible in dark mode. To address this, the `RNTesterText`, which takes into account the theme, is used. ## Changelog: [INTERNAL] [FIXED] - `RNTesterPlayground` description not visible in dark mode Pull Request resolved: https://github.com/facebook/react-native/pull/47346 Test Plan: | Before | After | | ---------- | ---------- | | ![Screenshot_1730414376](https://github.com/user-attachments/assets/a42e1a99-de61-41b5-b677-ea3e2b4956fc) | ![Screenshot_1730414393](https://github.com/user-attachments/assets/885ed334-8277-4ba8-a033-477b9afef7b6) | Reviewed By: cortinico Differential Revision: D65319138 Pulled By: Abbondanzo fbshipit-source-id: ff541be9705fb799cc4aa3624a9e2966a76a0f8d --- .../rn-tester/js/examples/Playground/RNTesterPlayground.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js b/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js index 01613e09377..eda3c308ca9 100644 --- a/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js +++ b/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js @@ -11,13 +11,16 @@ import type {RNTesterModuleExample} from '../../types/RNTesterTypes'; +import RNTesterText from '../../components/RNTesterText'; import * as React from 'react'; -import {StyleSheet, Text, View} from 'react-native'; +import {StyleSheet, View} from 'react-native'; function Playground() { return ( - Edit "RNTesterPlayground.js" to change this file + + Edit "RNTesterPlayground.js" to change this file + ); }