From 6a3116a8a95b1a910bb9f3217b981b5cfd5e7c38 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Thu, 19 Jun 2025 09:50:45 -0700 Subject: [PATCH] Add screenshot tests for LinearGradient (#52128) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52128 Changelog: [Internal] Reviewed By: andrewdacenko Differential Revision: D76972006 fbshipit-source-id: 657b78a842578df46f81d2416726665f49655a4f --- .../LinearGradient/LinearGradientExample.js | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/packages/rn-tester/js/examples/LinearGradient/LinearGradientExample.js b/packages/rn-tester/js/examples/LinearGradient/LinearGradientExample.js index 7f54516ea1e..a3191753e0e 100644 --- a/packages/rn-tester/js/examples/LinearGradient/LinearGradientExample.js +++ b/packages/rn-tester/js/examples/LinearGradient/LinearGradientExample.js @@ -51,6 +51,7 @@ exports.examples = [ { title: 'Basic Linear Gradient', description: 'Linear gradient from top to bottom', + name: 'basic', render(): React.Node { return ( ); }, }, { title: 'Multiple linear gradients', + name: 'multiple', render(): React.Node { return ( ); }, @@ -103,14 +106,15 @@ exports.examples = [ { title: 'Diagonal Gradient', description: 'Linear gradient from top-left to bottom-right', + name: 'diagonal', render(): React.Node { return ( ); }, @@ -118,20 +122,22 @@ exports.examples = [ { title: 'Gradient with angle', description: 'Linear gradient with angle', + name: 'angle', render(): React.Node { return ( ); }, }, { title: 'Multiple Color Stops', + name: 'color-stops', render(): React.Node { return ( ); }, }, { title: 'Gradient with non-uniform border style', + name: 'non-uniform-borders', render(): React.Node { return ( ); }, }, { title: 'Gradient with Platform colors', + name: 'platform-colors', render(): React.Node { return ( ); }, }, { title: 'Transition hint', + name: 'transition-hint', render(): React.Node { return ( ); },