mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ccd3b04770
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42126 This diff changes how numeric types are generated for Android native modules. Before this diff: |Codegen Type|Java Type| | -- | -- | |number|double| |Float|double| |Double|double| |Int32|double| After this diff: |Codegen Type|Java Type| | -- | -- | |number|double| |Float|**float**| |Double|double| |Int32|**int**| Changelog: [Android][Breaking] - Codegen: mapping for numeric types is changed for Android native modules. `Float` -> `float`; `Int32` -> `int`. Reviewed By: cipolleschi Differential Revision: D52420921 fbshipit-source-id: 32b3bbdf5fd24db8d7ac12c262bab5fde4e1f2bc
@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 packages/react-native-codegen.