From 0798ec86fa6ffc8bbaa9d80d702e6e9febd361ce Mon Sep 17 00:00:00 2001 From: Peter Abbondanzo Date: Thu, 10 Sep 2026 11:41:51 -0700 Subject: [PATCH] Add Switch screenshot coverage for props reconciliation (#58470) Summary: Add Jest E2E screenshot coverage for transparent Android `Switch` thumbs under the baseline and props update reconciliation configurations. Register reconciliation as an explicit opt-in config and apply its flags through the pre-startup feature flag provider. Changelog: [Internal] Differential Revision: D117232722 --- .../js/examples/Switch/SwitchExample.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/rn-tester/js/examples/Switch/SwitchExample.js b/packages/rn-tester/js/examples/Switch/SwitchExample.js index bfc76fea03ef..65f494d5fb55 100644 --- a/packages/rn-tester/js/examples/Switch/SwitchExample.js +++ b/packages/rn-tester/js/examples/Switch/SwitchExample.js @@ -267,6 +267,15 @@ class ContainerBackgroundColorStyleExample extends React.Component< } } +function TransparentExample() { + return ( + + + + + ); +} + exports.title = 'Switch'; exports.documentationURL = 'https://reactnative.dev/docs/switch'; exports.category = 'UI'; @@ -320,6 +329,13 @@ exports.examples = [ return ; }, }, + { + title: 'The switch thumb renders transparent', + name: 'transparent-thumb-color', + render(): React.MixedElement { + return ; + }, + }, ] as Array; if (Platform.OS === 'ios') {