Files
react-native/packages/react-native-codegen
Scott Kyle 402ad82027 Don't crash from wrong types
Summary:
The `get*` methods will assert and thus crash if JS passes a value by the wrong type. Although we have type checking, we should strive to never crash the app if an incorrect value slips by. The `as*` variants will throw an error back into JS instead.

Changelog:
Internal

Reviewed By: christophpurrer

Differential Revision: D34630900

fbshipit-source-id: 5ec55ca08ca7a1f43b2d9bfbb1d4e6fa89146e12
2022-03-04 08:02:17 -08:00
..
2022-02-22 02:23:02 -08:00
2022-03-04 08:02:17 -08:00
2020-09-29 14:39:40 -07:00
2021-10-14 15:34:29 -07:00
2022-03-04 07:25:59 -08:00
2022-01-21 07:30:41 -08:00

react-native-codegen

Version

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