mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Noticed these types could be improved based on the tests added in D40979066 (https://github.com/facebook/react-native/commit/e81c98c842380d8b72c1dc8d4a6e64f760e2a58c). Changelog: [Android][Fixed] Corrected Nullable annotations for parameters and return values in TurboModules codegen Reviewed By: mdvacca, cipolleschi Differential Revision: D40979940 fbshipit-source-id: cfc352a9e7eb9f59e2cce3d7da110a9a8d32db4b
react-native-codegen
Installation
yarn add --dev react-native-codegen
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the react Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest react-native-codegen.