mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7884f6cfec
Summary: This diff adds explicit type arguments to polymorphic function calls that do not constrain their types. This codemod will reduce the error burden that will come in a future version of flow. This specific diff was generated by running: ``` flow codemod annotate-implicit-instantiations --write . flow --json --pretty | jq '.errors | .[] | .message | .[] | .loc |.source' | sort | uniq | sed -e 's/"//g' | xargs hg revert hg st -n | xargs grep "generated" | sed -e 's/:.*//g' | xargs hg revert arc f ``` So these are the codemod results that introduced no new errors and no generated files. Changelog: [Internal] drop-conflicts Reviewed By: SamChou19815 Differential Revision: D40413074 fbshipit-source-id: 42b52719978f1098169662b503dbcfd8cefdad53
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.