|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`GenerateComponentDescriptorCpp can generate fixture ALL_PROP 1`] = ` |
| 4 | +Map { |
| 5 | + "ComponentDescriptors.cpp" => " |
| 6 | +/** |
| 7 | + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
| 8 | + * |
| 9 | + * Do not edit this file as changes may cause incorrect behavior and will be lost |
| 10 | + * once the code is regenerated. |
| 11 | + * |
| 12 | + * @generated by codegen project: GenerateComponentDescriptorCpp.js |
| 13 | + */ |
| 14 | +
|
| 15 | +#include <react/renderer/components/ALL_PROP/ComponentDescriptors.h> |
| 16 | +#include <react/renderer/core/ConcreteComponentDescriptor.h> |
| 17 | +#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
| 18 | +
|
| 19 | +namespace facebook::react { |
| 20 | +
|
| 21 | +void ALL_PROP_registerComponentDescriptorsFromCodegen( |
| 22 | + std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) { |
| 23 | +registry->add(concreteComponentDescriptorProvider<AllPropComponentDescriptor>()); |
| 24 | +} |
| 25 | +
|
| 26 | +} // namespace facebook::react |
| 27 | +", |
| 28 | +} |
| 29 | +`; |
| 30 | +
|
| 31 | +exports[`GenerateComponentDescriptorCpp can generate fixture ALL_PROP_WITH_OPTIONAL_GEN 1`] = ` |
| 32 | +Map { |
| 33 | + "ComponentDescriptors.cpp" => " |
| 34 | +/** |
| 35 | + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
| 36 | + * |
| 37 | + * Do not edit this file as changes may cause incorrect behavior and will be lost |
| 38 | + * once the code is regenerated. |
| 39 | + * |
| 40 | + * @generated by codegen project: GenerateComponentDescriptorCpp.js |
| 41 | + */ |
| 42 | +
|
| 43 | +#include <react/renderer/components/ALL_PROP_WITH_OPTIONAL_GEN/ComponentDescriptors.h> |
| 44 | +#include <react/renderer/core/ConcreteComponentDescriptor.h> |
| 45 | +#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
| 46 | +
|
| 47 | +namespace facebook::react { |
| 48 | +
|
| 49 | +void ALL_PROP_WITH_OPTIONAL_GEN_registerComponentDescriptorsFromCodegen( |
| 50 | + std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) { |
| 51 | +registry->add(concreteComponentDescriptorProvider<AllPropWithOptionalGenComponentDescriptor>()); |
| 52 | +} |
| 53 | +
|
| 54 | +} // namespace facebook::react |
| 55 | +", |
| 56 | +} |
| 57 | +`; |
| 58 | +
|
3 | 59 | exports[`GenerateComponentDescriptorCpp can generate fixture ARRAY_PROPS 1`] = ` |
4 | 60 | Map { |
5 | 61 | "ComponentDescriptors.cpp" => " |
@@ -56,6 +112,62 @@ registry->add(concreteComponentDescriptorProvider<ArrayPropsNativeComponentCompo |
56 | 112 | } |
57 | 113 | `; |
58 | 114 |
|
| 115 | +exports[`GenerateComponentDescriptorCpp can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT_WITH_OPTIONAL_GEN 1`] = ` |
| 116 | +Map { |
| 117 | + "ComponentDescriptors.cpp" => " |
| 118 | +/** |
| 119 | + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
| 120 | + * |
| 121 | + * Do not edit this file as changes may cause incorrect behavior and will be lost |
| 122 | + * once the code is regenerated. |
| 123 | + * |
| 124 | + * @generated by codegen project: GenerateComponentDescriptorCpp.js |
| 125 | + */ |
| 126 | +
|
| 127 | +#include <react/renderer/components/ARRAY_PROPS_WITH_NESTED_OBJECT_WITH_OPTIONAL_GEN/ComponentDescriptors.h> |
| 128 | +#include <react/renderer/core/ConcreteComponentDescriptor.h> |
| 129 | +#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
| 130 | +
|
| 131 | +namespace facebook::react { |
| 132 | +
|
| 133 | +void ARRAY_PROPS_WITH_NESTED_OBJECT_WITH_OPTIONAL_GEN_registerComponentDescriptorsFromCodegen( |
| 134 | + std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) { |
| 135 | +registry->add(concreteComponentDescriptorProvider<ArrayPropsNativeComponentComponentDescriptor>()); |
| 136 | +} |
| 137 | +
|
| 138 | +} // namespace facebook::react |
| 139 | +", |
| 140 | +} |
| 141 | +`; |
| 142 | +
|
| 143 | +exports[`GenerateComponentDescriptorCpp can generate fixture ARRAY_PROPS_WITH_OPTIONAL_GEN 1`] = ` |
| 144 | +Map { |
| 145 | + "ComponentDescriptors.cpp" => " |
| 146 | +/** |
| 147 | + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
| 148 | + * |
| 149 | + * Do not edit this file as changes may cause incorrect behavior and will be lost |
| 150 | + * once the code is regenerated. |
| 151 | + * |
| 152 | + * @generated by codegen project: GenerateComponentDescriptorCpp.js |
| 153 | + */ |
| 154 | +
|
| 155 | +#include <react/renderer/components/ARRAY_PROPS_WITH_OPTIONAL_GEN/ComponentDescriptors.h> |
| 156 | +#include <react/renderer/core/ConcreteComponentDescriptor.h> |
| 157 | +#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
| 158 | +
|
| 159 | +namespace facebook::react { |
| 160 | +
|
| 161 | +void ARRAY_PROPS_WITH_OPTIONAL_GEN_registerComponentDescriptorsFromCodegen( |
| 162 | + std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) { |
| 163 | +registry->add(concreteComponentDescriptorProvider<ArrayPropsNativeComponentComponentDescriptor>()); |
| 164 | +} |
| 165 | +
|
| 166 | +} // namespace facebook::react |
| 167 | +", |
| 168 | +} |
| 169 | +`; |
| 170 | +
|
59 | 171 | exports[`GenerateComponentDescriptorCpp can generate fixture BOOLEAN_PROP 1`] = ` |
60 | 172 | Map { |
61 | 173 | "ComponentDescriptors.cpp" => " |
@@ -673,6 +785,34 @@ registry->add(concreteComponentDescriptorProvider<ObjectPropsComponentDescriptor |
673 | 785 | } |
674 | 786 | `; |
675 | 787 |
|
| 788 | +exports[`GenerateComponentDescriptorCpp can generate fixture OBJECT_PROPS_WITH_OPTIONAL_GEN 1`] = ` |
| 789 | +Map { |
| 790 | + "ComponentDescriptors.cpp" => " |
| 791 | +/** |
| 792 | + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). |
| 793 | + * |
| 794 | + * Do not edit this file as changes may cause incorrect behavior and will be lost |
| 795 | + * once the code is regenerated. |
| 796 | + * |
| 797 | + * @generated by codegen project: GenerateComponentDescriptorCpp.js |
| 798 | + */ |
| 799 | +
|
| 800 | +#include <react/renderer/components/OBJECT_PROPS_WITH_OPTIONAL_GEN/ComponentDescriptors.h> |
| 801 | +#include <react/renderer/core/ConcreteComponentDescriptor.h> |
| 802 | +#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
| 803 | +
|
| 804 | +namespace facebook::react { |
| 805 | +
|
| 806 | +void OBJECT_PROPS_WITH_OPTIONAL_GEN_registerComponentDescriptorsFromCodegen( |
| 807 | + std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) { |
| 808 | +registry->add(concreteComponentDescriptorProvider<ObjectPropsComponentDescriptor>()); |
| 809 | +} |
| 810 | +
|
| 811 | +} // namespace facebook::react |
| 812 | +", |
| 813 | +} |
| 814 | +`; |
| 815 | +
|
676 | 816 | exports[`GenerateComponentDescriptorCpp can generate fixture POINT_PROP 1`] = ` |
677 | 817 | Map { |
678 | 818 | "ComponentDescriptors.cpp" => " |
|
0 commit comments