fix: RNTester TransformExample crash (#35292)

Summary:
As pointed out by kelset on https://github.com/facebook/react-native/pull/34660#issuecomment-1309081429 accessing the `TransformExample` is currently crashing the `RNTester` app due to missing units in one of the transformers. This PR fixes it by updating the transform value to a valid string.

## Changelog

[Internal] [Fixed] - Add missing translate units to  `RNTester` `TransformExample`

Pull Request resolved: https://github.com/facebook/react-native/pull/35292

Test Plan:
1. Open the RNTester app and navigate to the Transforms page
2. Check the transform style through the `Transform using a string` section

https://user-images.githubusercontent.com/11707729/200916399-779b2eeb-2bd8-4642-97a3-f050d6dd4278.mov

Reviewed By: christophpurrer

Differential Revision: D41164541

Pulled By: necolas

fbshipit-source-id: 4aa62980001a6f8ccf0108cb3af1e573b67e02b1
This commit is contained in:
Gabriel Donadel Dall'Agnol
2022-11-09 13:53:51 -08:00
committed by Facebook GitHub Bot
parent c0a06d2e6f
commit ff4a3c2bc7
@@ -208,7 +208,7 @@ const styles = StyleSheet.create({
width: 50,
},
box7Transform: {
transform: 'translate(-50, 35) rotate(50deg) scale(2)',
transform: 'translate(-50px, 35px) rotate(50deg) scale(2)',
},
flipCardContainer: {
marginVertical: 40,
@@ -337,7 +337,7 @@ exports.examples = [
},
{
title: 'Transform using a string',
description: "transform: 'translate(-50, 35) rotate(50deg) scale(2)'",
description: "transform: 'translate(-50px, 35px) rotate(50deg) scale(2)'",
render(): Node {
return (
<View style={styles.container}>