Fix GenerateModuleH

Summary:
Just updated the generator to work with the new RN Codegen Flow Parser types.

Changelog: [Internal]

Reviewed By: PeteTheHeat

Differential Revision: D23667252

fbshipit-source-id: 34404a478ddd67446d82b5f98e1051300064e95c
This commit is contained in:
Ramanpreet Nara authored and Facebook GitHub Bot committed 2020-09-29 14:39:41 -07:00
1 parent c0408b56fc
commit 4ab7cc236a
2 files changed
+37 -41

No files matched your search

@@ -2,7 +2,8 @@
exports[`GenerateModuleH can generate fixture COMPLEX_OBJECTS 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -38,7 +39,8 @@ virtual void getArrays(jsi::Runtime &rt, const jsi::Object &options) = 0;
exports[`GenerateModuleH can generate fixture EMPTY_NATIVE_MODULES 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -71,7 +73,8 @@ public:
exports[`GenerateModuleH can generate fixture NATIVE_MODULES_WITH_TYPE_ALIASES 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -105,7 +108,8 @@ virtual void cropImage(jsi::Runtime &rt, const jsi::Object &cropData) = 0;
exports[`GenerateModuleH can generate fixture REAL_MODULE_EXAMPLE 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -163,7 +167,8 @@ virtual void dismissRedbox(jsi::Runtime &rt) = 0;
exports[`GenerateModuleH can generate fixture SIMPLE_NATIVE_MODULES 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -206,7 +211,8 @@ virtual jsi::Value getValueWithPromise(jsi::Runtime &rt, bool error) = 0;
exports[`GenerateModuleH can generate fixture TWO_MODULES_DIFFERENT_FILES 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
@@ -249,7 +255,8 @@ virtual void voidFunc(jsi::Runtime &rt) = 0;
exports[`GenerateModuleH can generate fixture TWO_MODULES_SAME_FILE 1`] = `
Map {
"NativeModules.h" => "/**
"NativeModules.h" => "
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the