Sunset the value namespace #1720

Closed
joevilches wants to merge 3 commits from export-D63922280 into main

3 Commits

Author SHA1 Message Date
Joe Vilches
d523c5978b Sunset the value namespace (#1720)
Summary:

X-link: https://github.com/facebook/react-native/pull/46930

This is not really needed anymore, we can just use `StyleLength` statics instead

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63922280
2024-10-09 15:46:46 -07:00
Joe Vilches
f6f9d6f499 Let gentest properly create *Auto methods for sizes (#1719)
Summary:

Right now there is no way to test fixtures with `auto` widths, heights, or flex basis - even though we expose those functions. I updated gentest to generate those functions. Notably, position and margin (the other auto-able props) already account for this.

 I also created `YGAutoTest.html` to test this. Not really testing the capabilities of `auto` here, just if we can create a test about it.

Reviewed By: NickGerleman

Differential Revision: D64125522
2024-10-09 15:46:46 -07:00
Joe Vilches
e03737ab8c Make it so that we can console.log in browser to debug gentest (#1718)
Summary:

Our gentest works by console.logging the contents of the test it is generating to the browser powered by the driver. The driver then reads the logs and writes it to a file. An unfortunate side effect here is that we cannot console.log to debug how the gentest logic actually works since the driver is expecting formatted code. To get around this I had the driver filter out logs with a certain prefix and add that a helper that logs a message with this prefix to the scripts.

Reviewed By: NickGerleman

Differential Revision: D64011035
2024-10-09 15:46:46 -07:00