From 5ed57a0eda8e3d87dc308de541910312de355d48 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Date: Tue, 24 Oct 2023 14:25:58 -0300 Subject: [PATCH] Add transform undefined example to RNTester --- .../js/examples/Animated/TransformStylesExample.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/rn-tester/js/examples/Animated/TransformStylesExample.js b/packages/rn-tester/js/examples/Animated/TransformStylesExample.js index 60a90bc107a55a..d9467354097d0e 100644 --- a/packages/rn-tester/js/examples/Animated/TransformStylesExample.js +++ b/packages/rn-tester/js/examples/Animated/TransformStylesExample.js @@ -123,6 +123,10 @@ function AnimatedTransformStyleExample(): React.Node { property => properties[property].selected, )} /> + + {'Should not crash when transform style key is undefined'} + + ); } @@ -149,6 +153,9 @@ const styles = StyleSheet.create({ marginBottom: 6, borderBottomWidth: 1, }, + section: { + marginTop: 20, + }, }); export default ({