microsoft / react-native-windows-samples

A repository showcasing React Native samples and templates for Windows, macOS, and Surface Duo.
https://microsoft.github.io/react-native-windows/
MIT License
477 stars 198 forks source link

Codegen Does Not Generate Files for .tsx File Type #976

Open chiaramooney opened 4 days ago

chiaramooney commented 4 days ago

This documentation states that "The (spec) file must be named Native, with a .js or .jsx extension when using Flow, or a .ts, or .tsx extension when using TypeScript". However when I was creating a Turbo Module on canary last week, the codegen file would only generate if I set the file type to ts. It would not generate the codegen source if the file type was .tsx.

chrisglein commented 1 day ago

Documentation should be updated to indicate leave the "x" off. This specific part:

The file must be named Native, with a .js or .jsx extension when using Flow, or a .ts, or .tsx extension when using TypeScript.