mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3582f43440
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42956 In the component codegen system, when the header prefix is an empty string, we generate includes using angle brackets, like this: ``` #include <EventEmitter.h> ``` This fails to compile in buck. If we instead generate includes using quotations, buck compiles again. ``` #include "EventEmitter.h" ``` So, changes: if the headerPrefix is an empty string, generate includes using quotes. This is a followup to D51811596. Changelog: [Internal] Reviewed By: fkgozali, dmytrorykun Differential Revision: D53487111 fbshipit-source-id: e90a8b9fd4f8a2a93a0f4ad0ed989af26ad122c5
@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.