mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
79ca9036d3
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52545 Pull Request resolved: https://github.com/facebook/react-native/pull/51735 This diff refactors the ViewManagerInterfaces codegen to generate kotlin classes, As a consequence of this change, there are some ViewManagerInterfaces that have changed their APIs ## Changelog: [Android][Breaking] - Migrate ViewManagerInterfaces to kotlin. Some types in code generated ViewManagerInterfaces might differ. e.g. this will start enforcing nullability in parameters of viewManagerInterface methods (e.g. String commands parameters are not nullable, view params are not nullable in any method, etc) Reviewed By: cortinico Differential Revision: D78118738 fbshipit-source-id: cdd9e660e55397bd0936efce1c5aaf90c2946b7a
@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.