mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ad380c011f
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46726 An object isn't allowed to have both an indexer and regular properties. Previously, the schema just wouldn't include the properties and would only include the indexer. Instead of failing silently and not generating the expected code, let's explicitly error out. Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D63615090 fbshipit-source-id: a4c881b7a809f0b467509f7f7e2131be59ee274e
@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.