Files
react-native/packages/react-native-codegen/buck_tests/emptyFile.cpp
T
Michał Osadnik d6722477c4 Add e2e tests skeleton for generated cpp code (#25673)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/25673

This diff add e2e code generator validation. I added proper buck rule which compiles cpp code and test if it really compiles.

While testing I faced few minor issues:

- `getBool` and `getNumber` shouldn't have `rt` param.

- Generators now start considering whole module name instead of sliced part of their name.

- Fixed import structure in generated cpp.

- renamed `jsireact` to `ReactCommon` following D16231697

Reviewed By: rickhanlonii

Differential Revision: D16221277

fbshipit-source-id: aff4011ad52dd5e16546ffdb709d6a751ebfaced
2019-07-17 06:21:48 -07:00

10 lines
268 B
C++

#import <react/components/codegen_tests/ComponentDescriptors.h>
#import <react/modules/codegen_tests/NativeModules.h>
#import <react/modules/codegen_tests/NativeModules.cpp>
// TODO: Import every prop and event to asset they're generated
int main(){
return 0;
}