Skip to content

Commit ff4a3c2

Browse files
gabrieldonadelfacebook-github-bot
authored andcommitted
fix: RNTester TransformExample crash (facebook#35292)
Summary: As pointed out by kelset on facebook#34660 (comment) 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: facebook#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
1 parent c0a06d2 commit ff4a3c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/rn-tester/js/examples/Transform/TransformExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const styles = StyleSheet.create({
208208
width: 50,
209209
},
210210
box7Transform: {
211-
transform: 'translate(-50, 35) rotate(50deg) scale(2)',
211+
transform: 'translate(-50px, 35px) rotate(50deg) scale(2)',
212212
},
213213
flipCardContainer: {
214214
marginVertical: 40,
@@ -337,7 +337,7 @@ exports.examples = [
337337
},
338338
{
339339
title: 'Transform using a string',
340-
description: "transform: 'translate(-50, 35) rotate(50deg) scale(2)'",
340+
description: "transform: 'translate(-50px, 35px) rotate(50deg) scale(2)'",
341341
render(): Node {
342342
return (
343343
<View style={styles.container}>

0 commit comments

Comments
 (0)