mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53214 Changelog: [General] [Fixed] Enforce void return type for void return type in JS C++ TM spec Example if you have this spec ``` export interface Spec extends TurboModule { +foo: (bar: string) => void; } ``` We must enforce in C++ that the return type is `void` as e.g. ``` void foo(jsi::Runtime& rt, const std::string& bar); ``` Right now you can return any type in C++ such as `std::string` which does not make sense Reviewed By: lenaic Differential Revision: D79980538 fbshipit-source-id: 9b99ea6b1ac97d1e46cdb9952e83c445ec5503b7
Where is the template?
The React Native Template has moved from being shipping inside the react-native package to it's own package: @react-native-community/template.
Why has it moved?
The React Native Frameworks RFC0759 provides background information.
When was it moved?
The 0.75 release.