From 5675b06076144320526c5975e9fab219bc840081 Mon Sep 17 00:00:00 2001 From: Andrew Coates <30809111+acoates-ms@users.noreply.github.com> Date: Wed, 12 May 2021 09:27:25 -0700 Subject: [PATCH 1/2] Do not include license on users codegen'd code --- .../generators/components/GenerateComponentDescriptorH.js | 6 +++--- .../src/generators/components/GenerateComponentHObjCpp.js | 6 +++--- .../src/generators/components/GenerateEventEmitterCpp.js | 6 +++--- .../src/generators/components/GenerateEventEmitterH.js | 6 +++--- .../src/generators/components/GeneratePropsCpp.js | 6 +++--- .../src/generators/components/GeneratePropsH.js | 6 +++--- .../src/generators/components/GeneratePropsJavaDelegate.js | 6 +++--- .../src/generators/components/GeneratePropsJavaInterface.js | 6 +++--- .../src/generators/components/GenerateShadowNodeCpp.js | 6 +++--- .../src/generators/components/GenerateShadowNodeH.js | 6 +++--- .../src/generators/components/GenerateTests.js | 6 +++--- .../src/generators/components/GenerateViewConfigJs.js | 6 +++--- 12 files changed, 36 insertions(+), 36 deletions(-) diff --git a/packages/react-native-codegen/src/generators/components/GenerateComponentDescriptorH.js b/packages/react-native-codegen/src/generators/components/GenerateComponentDescriptorH.js index 2adf7ad393631d..d7b700788d105a 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateComponentDescriptorH.js +++ b/packages/react-native-codegen/src/generators/components/GenerateComponentDescriptorH.js @@ -17,10 +17,10 @@ type FilesOutput = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateComponentDescriptorH.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateComponentHObjCpp.js b/packages/react-native-codegen/src/generators/components/GenerateComponentHObjCpp.js index a2f42c8b3476f0..a87a421354804c 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateComponentHObjCpp.js +++ b/packages/react-native-codegen/src/generators/components/GenerateComponentHObjCpp.js @@ -85,10 +85,10 @@ RCT_EXTERN inline void RCT::_COMPONENT_NAME_::HandleCommand( const template = ` /** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * ${'@'}generated by codegen project: GenerateComponentHObjCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateEventEmitterCpp.js b/packages/react-native-codegen/src/generators/components/GenerateEventEmitterCpp.js index b4f32f428079c7..ed009a1d45498f 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateEventEmitterCpp.js +++ b/packages/react-native-codegen/src/generators/components/GenerateEventEmitterCpp.js @@ -29,10 +29,10 @@ type ComponentCollection = $ReadOnly<{ const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateEventEmitterCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateEventEmitterH.js b/packages/react-native-codegen/src/generators/components/GenerateEventEmitterH.js index 812783b947d3b3..4365c707bc0c0d 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateEventEmitterH.js +++ b/packages/react-native-codegen/src/generators/components/GenerateEventEmitterH.js @@ -37,10 +37,10 @@ type ComponentCollection = $ReadOnly<{ const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateEventEmitterH.js */ diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsCpp.js b/packages/react-native-codegen/src/generators/components/GeneratePropsCpp.js index 39fc1ffc60fbb7..16b48e2ef3ee9c 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsCpp.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsCpp.js @@ -18,10 +18,10 @@ type FilesOutput = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GeneratePropsCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsH.js b/packages/react-native-codegen/src/generators/components/GeneratePropsH.js index d218d809bc5bac..eaac7cefed3e9c 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsH.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsH.js @@ -34,10 +34,10 @@ type StructsMap = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GeneratePropsH.js */ diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js index 0e71cdbaa8673b..9e557ca9e3b32f 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js @@ -28,10 +28,10 @@ const { type FilesOutput = Map; const template = `/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * ${'@'}generated by codegen project: GeneratePropsJavaDelegate.js */ diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js index 77781ec192b22a..5926014ecb4745 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js @@ -27,10 +27,10 @@ const { type FilesOutput = Map; const template = `/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * ${'@'}generated by codegen project: GeneratePropsJavaInterface.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateShadowNodeCpp.js b/packages/react-native-codegen/src/generators/components/GenerateShadowNodeCpp.js index f52444da89d64e..969ff5e2f8d0a9 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateShadowNodeCpp.js +++ b/packages/react-native-codegen/src/generators/components/GenerateShadowNodeCpp.js @@ -17,10 +17,10 @@ type FilesOutput = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateShadowNodeCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateShadowNodeH.js b/packages/react-native-codegen/src/generators/components/GenerateShadowNodeH.js index b42da9bd557615..b5b1ca8a791e8c 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateShadowNodeH.js +++ b/packages/react-native-codegen/src/generators/components/GenerateShadowNodeH.js @@ -17,10 +17,10 @@ type FilesOutput = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateShadowNodeH.js */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateTests.js b/packages/react-native-codegen/src/generators/components/GenerateTests.js index ef5c3a47dfc2af..6aa98cc6c0d3ae 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateTests.js +++ b/packages/react-native-codegen/src/generators/components/GenerateTests.js @@ -25,10 +25,10 @@ type TestCase = $ReadOnly<{ const fileTemplate = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * ${'@'}generated by codegen project: GenerateTests.js * */ diff --git a/packages/react-native-codegen/src/generators/components/GenerateViewConfigJs.js b/packages/react-native-codegen/src/generators/components/GenerateViewConfigJs.js index a95cce35fe0c90..8b700b525d6120 100644 --- a/packages/react-native-codegen/src/generators/components/GenerateViewConfigJs.js +++ b/packages/react-native-codegen/src/generators/components/GenerateViewConfigJs.js @@ -19,10 +19,10 @@ type FilesOutput = Map; const template = ` /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * From aaccafe03d9c4342828cdf0026c7aa13de9755fd Mon Sep 17 00:00:00 2001 From: Andrew <30809111+acoates-ms@users.noreply.github.com> Date: Wed, 12 May 2021 09:37:05 -0700 Subject: [PATCH 2/2] Updated snapshots --- .../GenerateComponentDescriptorH-test.js.snap | 156 ++++++++--------- .../GenerateComponentHObjCpp-test.js.snap | 156 ++++++++--------- .../GenerateEventEmitterCpp-test.js.snap | 156 ++++++++--------- .../GenerateEventEmitterH-test.js.snap | 156 ++++++++--------- .../GeneratePropsCpp-test.js.snap | 156 ++++++++--------- .../__snapshots__/GeneratePropsH-test.js.snap | 156 ++++++++--------- .../GeneratePropsJavaDelegate-test.js.snap | 156 ++++++++--------- .../GeneratePropsJavaInterface-test.js.snap | 156 ++++++++--------- .../GenerateShadowNodeCpp-test.js.snap | 156 ++++++++--------- .../GenerateShadowNodeH-test.js.snap | 156 ++++++++--------- .../__snapshots__/GenerateTests-test.js.snap | 156 ++++++++--------- .../GenerateViewConfigJs-test.js.snap | 162 +++++++++--------- 12 files changed, 939 insertions(+), 939 deletions(-) diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentDescriptorH-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentDescriptorH-test.js.snap index 34b1f425bc4174..59bc2ad0fbb56a 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentDescriptorH-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentDescriptorH-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateComponentDescriptorH can generate fixture ARRAY_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -32,10 +32,10 @@ exports[`GenerateComponentDescriptorH can generate fixture ARRAY_PROPS_WITH_NEST Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -60,10 +60,10 @@ exports[`GenerateComponentDescriptorH can generate fixture BOOLEAN_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -88,10 +88,10 @@ exports[`GenerateComponentDescriptorH can generate fixture COLOR_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -116,10 +116,10 @@ exports[`GenerateComponentDescriptorH can generate fixture COMMANDS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -144,10 +144,10 @@ exports[`GenerateComponentDescriptorH can generate fixture COMMANDS_AND_PROPS 1` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -172,10 +172,10 @@ exports[`GenerateComponentDescriptorH can generate fixture DOUBLE_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -200,10 +200,10 @@ exports[`GenerateComponentDescriptorH can generate fixture EVENT_NESTED_OBJECT_P Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -228,10 +228,10 @@ exports[`GenerateComponentDescriptorH can generate fixture EVENT_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -256,10 +256,10 @@ exports[`GenerateComponentDescriptorH can generate fixture EVENTS_WITH_PAPER_NAM Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -284,10 +284,10 @@ exports[`GenerateComponentDescriptorH can generate fixture EXCLUDE_ANDROID 1`] = Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -312,10 +312,10 @@ exports[`GenerateComponentDescriptorH can generate fixture EXCLUDE_ANDROID_IOS 1 Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -340,10 +340,10 @@ exports[`GenerateComponentDescriptorH can generate fixture FLOAT_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -368,10 +368,10 @@ exports[`GenerateComponentDescriptorH can generate fixture IMAGE_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -396,10 +396,10 @@ exports[`GenerateComponentDescriptorH can generate fixture INSETS_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -424,10 +424,10 @@ exports[`GenerateComponentDescriptorH can generate fixture INT32_ENUM_PROP 1`] = Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -452,10 +452,10 @@ exports[`GenerateComponentDescriptorH can generate fixture INTEGER_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -480,10 +480,10 @@ exports[`GenerateComponentDescriptorH can generate fixture INTERFACE_ONLY 1`] = Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -508,10 +508,10 @@ exports[`GenerateComponentDescriptorH can generate fixture MULTI_NATIVE_PROP 1`] Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -536,10 +536,10 @@ exports[`GenerateComponentDescriptorH can generate fixture NO_PROPS_NO_EVENTS 1` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -564,10 +564,10 @@ exports[`GenerateComponentDescriptorH can generate fixture OBJECT_PROPS 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -592,10 +592,10 @@ exports[`GenerateComponentDescriptorH can generate fixture POINT_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -620,10 +620,10 @@ exports[`GenerateComponentDescriptorH can generate fixture STRING_ENUM_PROP 1`] Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -648,10 +648,10 @@ exports[`GenerateComponentDescriptorH can generate fixture STRING_PROP 1`] = ` Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -676,10 +676,10 @@ exports[`GenerateComponentDescriptorH can generate fixture TWO_COMPONENTS_DIFFER Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ @@ -705,10 +705,10 @@ exports[`GenerateComponentDescriptorH can generate fixture TWO_COMPONENTS_SAME_F Map { "ComponentDescriptors.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateComponentDescriptorH.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentHObjCpp-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentHObjCpp-test.js.snap index 68e1b8f98344ee..9a338c52cbcf9d 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentHObjCpp-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateComponentHObjCpp-test.js.snap @@ -3,10 +3,10 @@ exports[`GenerateComponentHObjCpp can generate fixture ARRAY_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -28,10 +28,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -53,10 +53,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture BOOLEAN_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -78,10 +78,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture COLOR_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -103,10 +103,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture COMMANDS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -205,10 +205,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -289,10 +289,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture DOUBLE_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -314,10 +314,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -339,10 +339,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture EVENT_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -364,10 +364,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -389,10 +389,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -414,10 +414,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -437,10 +437,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture FLOAT_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -462,10 +462,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture IMAGE_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -487,10 +487,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture INSETS_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -512,10 +512,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture INT32_ENUM_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -537,10 +537,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture INTEGER_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -562,10 +562,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture INTERFACE_ONLY 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -587,10 +587,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -612,10 +612,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -637,10 +637,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture OBJECT_PROPS 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -662,10 +662,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture POINT_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -687,10 +687,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture STRING_ENUM_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -712,10 +712,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture STRING_PROP 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -737,10 +737,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ @@ -766,10 +766,10 @@ NS_ASSUME_NONNULL_END", exports[`GenerateComponentHObjCpp can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = ` Map { "RCTComponentViewHelpers.h" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GenerateComponentHObjCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterCpp-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterCpp-test.js.snap index 04c08736f743ec..77436a329005af 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterCpp-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterCpp-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateEventEmitterCpp can generate fixture ARRAY_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -29,10 +29,10 @@ exports[`GenerateEventEmitterCpp can generate fixture ARRAY_PROPS_WITH_NESTED_OB Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -54,10 +54,10 @@ exports[`GenerateEventEmitterCpp can generate fixture BOOLEAN_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -79,10 +79,10 @@ exports[`GenerateEventEmitterCpp can generate fixture COLOR_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -104,10 +104,10 @@ exports[`GenerateEventEmitterCpp can generate fixture COMMANDS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -129,10 +129,10 @@ exports[`GenerateEventEmitterCpp can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -154,10 +154,10 @@ exports[`GenerateEventEmitterCpp can generate fixture DOUBLE_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -179,10 +179,10 @@ exports[`GenerateEventEmitterCpp can generate fixture EVENT_NESTED_OBJECT_PROPS Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -222,10 +222,10 @@ exports[`GenerateEventEmitterCpp can generate fixture EVENT_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -273,10 +273,10 @@ exports[`GenerateEventEmitterCpp can generate fixture EVENTS_WITH_PAPER_NAME 1`] Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -311,10 +311,10 @@ exports[`GenerateEventEmitterCpp can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -336,10 +336,10 @@ exports[`GenerateEventEmitterCpp can generate fixture EXCLUDE_ANDROID_IOS 1`] = Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -361,10 +361,10 @@ exports[`GenerateEventEmitterCpp can generate fixture FLOAT_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -386,10 +386,10 @@ exports[`GenerateEventEmitterCpp can generate fixture IMAGE_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -411,10 +411,10 @@ exports[`GenerateEventEmitterCpp can generate fixture INSETS_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -436,10 +436,10 @@ exports[`GenerateEventEmitterCpp can generate fixture INT32_ENUM_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -461,10 +461,10 @@ exports[`GenerateEventEmitterCpp can generate fixture INTEGER_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -486,10 +486,10 @@ exports[`GenerateEventEmitterCpp can generate fixture INTERFACE_ONLY 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -517,10 +517,10 @@ exports[`GenerateEventEmitterCpp can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -542,10 +542,10 @@ exports[`GenerateEventEmitterCpp can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -567,10 +567,10 @@ exports[`GenerateEventEmitterCpp can generate fixture OBJECT_PROPS 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -592,10 +592,10 @@ exports[`GenerateEventEmitterCpp can generate fixture POINT_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -617,10 +617,10 @@ exports[`GenerateEventEmitterCpp can generate fixture STRING_ENUM_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -642,10 +642,10 @@ exports[`GenerateEventEmitterCpp can generate fixture STRING_PROP 1`] = ` Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -667,10 +667,10 @@ exports[`GenerateEventEmitterCpp can generate fixture TWO_COMPONENTS_DIFFERENT_F Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ @@ -693,10 +693,10 @@ exports[`GenerateEventEmitterCpp can generate fixture TWO_COMPONENTS_SAME_FILE 1 Map { "EventEmitters.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterH-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterH-test.js.snap index 18e1a2ce0d489a..7155932b9a0d62 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterH-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateEventEmitterH-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateEventEmitterH can generate fixture ARRAY_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -30,10 +30,10 @@ exports[`GenerateEventEmitterH can generate fixture ARRAY_PROPS_WITH_NESTED_OBJE Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -56,10 +56,10 @@ exports[`GenerateEventEmitterH can generate fixture BOOLEAN_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -82,10 +82,10 @@ exports[`GenerateEventEmitterH can generate fixture COLOR_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -108,10 +108,10 @@ exports[`GenerateEventEmitterH can generate fixture COMMANDS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -134,10 +134,10 @@ exports[`GenerateEventEmitterH can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -160,10 +160,10 @@ exports[`GenerateEventEmitterH can generate fixture DOUBLE_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -186,10 +186,10 @@ exports[`GenerateEventEmitterH can generate fixture EVENT_NESTED_OBJECT_PROPS 1` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -231,10 +231,10 @@ exports[`GenerateEventEmitterH can generate fixture EVENT_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -295,10 +295,10 @@ exports[`GenerateEventEmitterH can generate fixture EVENTS_WITH_PAPER_NAME 1`] = Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -336,10 +336,10 @@ exports[`GenerateEventEmitterH can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -362,10 +362,10 @@ exports[`GenerateEventEmitterH can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -388,10 +388,10 @@ exports[`GenerateEventEmitterH can generate fixture FLOAT_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -414,10 +414,10 @@ exports[`GenerateEventEmitterH can generate fixture IMAGE_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -440,10 +440,10 @@ exports[`GenerateEventEmitterH can generate fixture INSETS_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -466,10 +466,10 @@ exports[`GenerateEventEmitterH can generate fixture INT32_ENUM_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -492,10 +492,10 @@ exports[`GenerateEventEmitterH can generate fixture INTEGER_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -518,10 +518,10 @@ exports[`GenerateEventEmitterH can generate fixture INTERFACE_ONLY 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -553,10 +553,10 @@ exports[`GenerateEventEmitterH can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -579,10 +579,10 @@ exports[`GenerateEventEmitterH can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -605,10 +605,10 @@ exports[`GenerateEventEmitterH can generate fixture OBJECT_PROPS 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -631,10 +631,10 @@ exports[`GenerateEventEmitterH can generate fixture POINT_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -657,10 +657,10 @@ exports[`GenerateEventEmitterH can generate fixture STRING_ENUM_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -683,10 +683,10 @@ exports[`GenerateEventEmitterH can generate fixture STRING_PROP 1`] = ` Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -709,10 +709,10 @@ exports[`GenerateEventEmitterH can generate fixture TWO_COMPONENTS_DIFFERENT_FIL Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ @@ -735,10 +735,10 @@ exports[`GenerateEventEmitterH can generate fixture TWO_COMPONENTS_SAME_FILE 1`] Map { "EventEmitters.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateEventEmitterH.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsCpp-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsCpp-test.js.snap index 3dabcf8bdcb5ef..88b1ce7165f3d5 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsCpp-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsCpp-test.js.snap @@ -4,10 +4,10 @@ exports[`GeneratePropsCpp can generate fixture ARRAY_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -46,10 +46,10 @@ exports[`GeneratePropsCpp can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -77,10 +77,10 @@ exports[`GeneratePropsCpp can generate fixture BOOLEAN_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -108,10 +108,10 @@ exports[`GeneratePropsCpp can generate fixture COLOR_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -139,10 +139,10 @@ exports[`GeneratePropsCpp can generate fixture COMMANDS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -170,10 +170,10 @@ exports[`GeneratePropsCpp can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -201,10 +201,10 @@ exports[`GeneratePropsCpp can generate fixture DOUBLE_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -237,10 +237,10 @@ exports[`GeneratePropsCpp can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -268,10 +268,10 @@ exports[`GeneratePropsCpp can generate fixture EVENT_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -299,10 +299,10 @@ exports[`GeneratePropsCpp can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -330,10 +330,10 @@ exports[`GeneratePropsCpp can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -361,10 +361,10 @@ exports[`GeneratePropsCpp can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -387,10 +387,10 @@ exports[`GeneratePropsCpp can generate fixture FLOAT_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -423,10 +423,10 @@ exports[`GeneratePropsCpp can generate fixture IMAGE_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -455,10 +455,10 @@ exports[`GeneratePropsCpp can generate fixture INSETS_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -486,10 +486,10 @@ exports[`GeneratePropsCpp can generate fixture INT32_ENUM_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -517,10 +517,10 @@ exports[`GeneratePropsCpp can generate fixture INTEGER_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -550,10 +550,10 @@ exports[`GeneratePropsCpp can generate fixture INTERFACE_ONLY 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -581,10 +581,10 @@ exports[`GeneratePropsCpp can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -616,10 +616,10 @@ exports[`GeneratePropsCpp can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -647,10 +647,10 @@ exports[`GeneratePropsCpp can generate fixture OBJECT_PROPS 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -679,10 +679,10 @@ exports[`GeneratePropsCpp can generate fixture POINT_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -710,10 +710,10 @@ exports[`GeneratePropsCpp can generate fixture STRING_ENUM_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -741,10 +741,10 @@ exports[`GeneratePropsCpp can generate fixture STRING_PROP 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -773,10 +773,10 @@ exports[`GeneratePropsCpp can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ @@ -810,10 +810,10 @@ exports[`GeneratePropsCpp can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = ` Map { "Props.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap index 3fed947a715bea..25e953525163fc 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap @@ -4,10 +4,10 @@ exports[`GeneratePropsH can generate fixture ARRAY_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -219,10 +219,10 @@ exports[`GeneratePropsH can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -294,10 +294,10 @@ exports[`GeneratePropsH can generate fixture BOOLEAN_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -328,10 +328,10 @@ exports[`GeneratePropsH can generate fixture COLOR_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -363,10 +363,10 @@ exports[`GeneratePropsH can generate fixture COMMANDS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -397,10 +397,10 @@ exports[`GeneratePropsH can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -431,10 +431,10 @@ exports[`GeneratePropsH can generate fixture DOUBLE_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -470,10 +470,10 @@ exports[`GeneratePropsH can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -504,10 +504,10 @@ exports[`GeneratePropsH can generate fixture EVENT_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -538,10 +538,10 @@ exports[`GeneratePropsH can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -572,10 +572,10 @@ exports[`GeneratePropsH can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -606,10 +606,10 @@ exports[`GeneratePropsH can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -632,10 +632,10 @@ exports[`GeneratePropsH can generate fixture FLOAT_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -671,10 +671,10 @@ exports[`GeneratePropsH can generate fixture IMAGE_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -706,10 +706,10 @@ exports[`GeneratePropsH can generate fixture INSETS_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -741,10 +741,10 @@ exports[`GeneratePropsH can generate fixture INT32_ENUM_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -802,10 +802,10 @@ exports[`GeneratePropsH can generate fixture INTEGER_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -838,10 +838,10 @@ exports[`GeneratePropsH can generate fixture INTERFACE_ONLY 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -872,10 +872,10 @@ exports[`GeneratePropsH can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -912,10 +912,10 @@ exports[`GeneratePropsH can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -946,10 +946,10 @@ exports[`GeneratePropsH can generate fixture OBJECT_PROPS 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -1200,10 +1200,10 @@ exports[`GeneratePropsH can generate fixture POINT_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -1235,10 +1235,10 @@ exports[`GeneratePropsH can generate fixture STRING_ENUM_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -1287,10 +1287,10 @@ exports[`GeneratePropsH can generate fixture STRING_PROP 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -1322,10 +1322,10 @@ exports[`GeneratePropsH can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ @@ -1366,10 +1366,10 @@ exports[`GeneratePropsH can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = ` Map { "Props.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GeneratePropsH.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap index 2b062c4f906bc0..b2f4be67f4a30e 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap @@ -3,10 +3,10 @@ exports[`GeneratePropsJavaDelegate can generate fixture ARRAY_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/ArrayPropsNativeComponentManagerDelegate.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -71,10 +71,10 @@ public class ArrayPropsNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -109,10 +109,10 @@ public class ArrayPropsNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -146,10 +146,10 @@ public class BooleanPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -184,10 +184,10 @@ public class ColorPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -228,10 +228,10 @@ public class CommandNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -278,10 +278,10 @@ public class CommandNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -330,10 +330,10 @@ public class DoublePropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -367,10 +367,10 @@ public class EventsNestedObjectNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -404,10 +404,10 @@ public class EventsNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -439,10 +439,10 @@ exports[`GeneratePropsJavaDelegate can generate fixture EXCLUDE_ANDROID_IOS 1`] exports[`GeneratePropsJavaDelegate can generate fixture FLOAT_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/FloatPropNativeComponentManagerDelegate.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -491,10 +491,10 @@ public class FloatPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -529,10 +529,10 @@ public class ImagePropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -567,10 +567,10 @@ public class InsetsPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -604,10 +604,10 @@ public class Int32EnumPropsNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -647,10 +647,10 @@ public class IntegerPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -684,10 +684,10 @@ public class InterfaceOnlyComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -732,10 +732,10 @@ public class ImageColorPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -763,10 +763,10 @@ public class NoPropsNoEventsComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -801,10 +801,10 @@ public class ObjectPropsManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -839,10 +839,10 @@ public class PointPropNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -876,10 +876,10 @@ public class StringEnumPropsNativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -916,10 +916,10 @@ public class StringPropComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -948,10 +948,10 @@ public class MultiFile1NativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -985,10 +985,10 @@ public class MultiFile2NativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ @@ -1017,10 +1017,10 @@ public class MultiComponent1NativeComponentManagerDelegate "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaDelegate.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap index 2add98876ce447..b62a7efc80870b 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap @@ -3,10 +3,10 @@ exports[`GeneratePropsJavaInterface can generate fixture ARRAY_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/ArrayPropsNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -37,10 +37,10 @@ public interface ArrayPropsNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] = ` Map { "java/com/facebook/react/viewmanagers/ArrayPropsNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -61,10 +61,10 @@ public interface ArrayPropsNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture BOOLEAN_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/BooleanPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -83,10 +83,10 @@ public interface BooleanPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture COLOR_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/ColorPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -106,10 +106,10 @@ public interface ColorPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture COMMANDS 1`] = ` Map { "java/com/facebook/react/viewmanagers/CommandNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -130,10 +130,10 @@ public interface CommandNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/CommandNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -155,10 +155,10 @@ public interface CommandNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture DOUBLE_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/DoublePropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -182,10 +182,10 @@ public interface DoublePropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/EventsNestedObjectNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -204,10 +204,10 @@ public interface EventsNestedObjectNativeComponentManagerInterface "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -226,10 +226,10 @@ public interface EventsNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "java/com/facebook/react/viewmanagers/InterfaceOnlyComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -252,10 +252,10 @@ exports[`GeneratePropsJavaInterface can generate fixture EXCLUDE_ANDROID_IOS 1`] exports[`GeneratePropsJavaInterface can generate fixture FLOAT_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/FloatPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -279,10 +279,10 @@ public interface FloatPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture IMAGE_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/ImagePropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -303,10 +303,10 @@ public interface ImagePropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture INSETS_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/InsetsPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -327,10 +327,10 @@ public interface InsetsPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture INT32_ENUM_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/Int32EnumPropsNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -350,10 +350,10 @@ public interface Int32EnumPropsNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture INTEGER_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/IntegerPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -374,10 +374,10 @@ public interface IntegerPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture INTERFACE_ONLY 1`] = ` Map { "java/com/facebook/react/viewmanagers/InterfaceOnlyComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -397,10 +397,10 @@ public interface InterfaceOnlyComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/ImageColorPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -424,10 +424,10 @@ public interface ImageColorPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "java/com/facebook/react/viewmanagers/NoPropsNoEventsComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -446,10 +446,10 @@ public interface NoPropsNoEventsComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture OBJECT_PROPS 1`] = ` Map { "java/com/facebook/react/viewmanagers/ObjectPropsManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -470,10 +470,10 @@ public interface ObjectPropsManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture POINT_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/PointPropNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -494,10 +494,10 @@ public interface PointPropNativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture STRING_ENUM_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/StringEnumPropsNativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -517,10 +517,10 @@ public interface StringEnumPropsNativeComponentManagerInterface exports[`GeneratePropsJavaInterface can generate fixture STRING_PROP 1`] = ` Map { "java/com/facebook/react/viewmanagers/StringPropComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -541,10 +541,10 @@ public interface StringPropComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] = ` Map { "java/com/facebook/react/viewmanagers/MultiFile1NativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -558,10 +558,10 @@ public interface MultiFile1NativeComponentManagerInterface { } ", "java/com/facebook/react/viewmanagers/MultiFile2NativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -580,10 +580,10 @@ public interface MultiFile2NativeComponentManagerInterface { exports[`GeneratePropsJavaInterface can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = ` Map { "java/com/facebook/react/viewmanagers/MultiComponent1NativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ @@ -597,10 +597,10 @@ public interface MultiComponent1NativeComponentManagerInterface } ", "java/com/facebook/react/viewmanagers/MultiComponent2NativeComponentManagerInterface.java" => "/** -* Copyright (c) Facebook, Inc. and its affiliates. +* This code was generated by a tool. * -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. +* Changes to this file may cause incorrect behavior and will be lost if +* the code is regenerated. * * @generated by codegen project: GeneratePropsJavaInterface.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeCpp-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeCpp-test.js.snap index f953c291ba49a7..b571f7d5b88563 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeCpp-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeCpp-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateShadowNodeCpp can generate fixture ARRAY_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -29,10 +29,10 @@ exports[`GenerateShadowNodeCpp can generate fixture ARRAY_PROPS_WITH_NESTED_OBJE Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -54,10 +54,10 @@ exports[`GenerateShadowNodeCpp can generate fixture BOOLEAN_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -79,10 +79,10 @@ exports[`GenerateShadowNodeCpp can generate fixture COLOR_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -104,10 +104,10 @@ exports[`GenerateShadowNodeCpp can generate fixture COMMANDS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -129,10 +129,10 @@ exports[`GenerateShadowNodeCpp can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -154,10 +154,10 @@ exports[`GenerateShadowNodeCpp can generate fixture DOUBLE_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -179,10 +179,10 @@ exports[`GenerateShadowNodeCpp can generate fixture EVENT_NESTED_OBJECT_PROPS 1` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -204,10 +204,10 @@ exports[`GenerateShadowNodeCpp can generate fixture EVENT_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -229,10 +229,10 @@ exports[`GenerateShadowNodeCpp can generate fixture EVENTS_WITH_PAPER_NAME 1`] = Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -254,10 +254,10 @@ exports[`GenerateShadowNodeCpp can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -279,10 +279,10 @@ exports[`GenerateShadowNodeCpp can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -304,10 +304,10 @@ exports[`GenerateShadowNodeCpp can generate fixture FLOAT_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -329,10 +329,10 @@ exports[`GenerateShadowNodeCpp can generate fixture IMAGE_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -354,10 +354,10 @@ exports[`GenerateShadowNodeCpp can generate fixture INSETS_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -379,10 +379,10 @@ exports[`GenerateShadowNodeCpp can generate fixture INT32_ENUM_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -404,10 +404,10 @@ exports[`GenerateShadowNodeCpp can generate fixture INTEGER_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -429,10 +429,10 @@ exports[`GenerateShadowNodeCpp can generate fixture INTERFACE_ONLY 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -454,10 +454,10 @@ exports[`GenerateShadowNodeCpp can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -479,10 +479,10 @@ exports[`GenerateShadowNodeCpp can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -504,10 +504,10 @@ exports[`GenerateShadowNodeCpp can generate fixture OBJECT_PROPS 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -529,10 +529,10 @@ exports[`GenerateShadowNodeCpp can generate fixture POINT_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -554,10 +554,10 @@ exports[`GenerateShadowNodeCpp can generate fixture STRING_ENUM_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -579,10 +579,10 @@ exports[`GenerateShadowNodeCpp can generate fixture STRING_PROP 1`] = ` Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -604,10 +604,10 @@ exports[`GenerateShadowNodeCpp can generate fixture TWO_COMPONENTS_DIFFERENT_FIL Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ @@ -630,10 +630,10 @@ exports[`GenerateShadowNodeCpp can generate fixture TWO_COMPONENTS_SAME_FILE 1`] Map { "ShadowNodes.cpp" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeCpp.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeH-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeH-test.js.snap index bb34cfbab42793..ef5193b759574b 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeH-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateShadowNodeH-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateShadowNodeH can generate fixture ARRAY_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -39,10 +39,10 @@ exports[`GenerateShadowNodeH can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -74,10 +74,10 @@ exports[`GenerateShadowNodeH can generate fixture BOOLEAN_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -109,10 +109,10 @@ exports[`GenerateShadowNodeH can generate fixture COLOR_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -144,10 +144,10 @@ exports[`GenerateShadowNodeH can generate fixture COMMANDS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -179,10 +179,10 @@ exports[`GenerateShadowNodeH can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -214,10 +214,10 @@ exports[`GenerateShadowNodeH can generate fixture DOUBLE_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -249,10 +249,10 @@ exports[`GenerateShadowNodeH can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -286,10 +286,10 @@ exports[`GenerateShadowNodeH can generate fixture EVENT_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -323,10 +323,10 @@ exports[`GenerateShadowNodeH can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -351,10 +351,10 @@ exports[`GenerateShadowNodeH can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -386,10 +386,10 @@ exports[`GenerateShadowNodeH can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -421,10 +421,10 @@ exports[`GenerateShadowNodeH can generate fixture FLOAT_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -456,10 +456,10 @@ exports[`GenerateShadowNodeH can generate fixture IMAGE_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -491,10 +491,10 @@ exports[`GenerateShadowNodeH can generate fixture INSETS_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -526,10 +526,10 @@ exports[`GenerateShadowNodeH can generate fixture INT32_ENUM_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -561,10 +561,10 @@ exports[`GenerateShadowNodeH can generate fixture INTEGER_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -596,10 +596,10 @@ exports[`GenerateShadowNodeH can generate fixture INTERFACE_ONLY 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -624,10 +624,10 @@ exports[`GenerateShadowNodeH can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -659,10 +659,10 @@ exports[`GenerateShadowNodeH can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -694,10 +694,10 @@ exports[`GenerateShadowNodeH can generate fixture OBJECT_PROPS 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -729,10 +729,10 @@ exports[`GenerateShadowNodeH can generate fixture POINT_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -764,10 +764,10 @@ exports[`GenerateShadowNodeH can generate fixture STRING_ENUM_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -799,10 +799,10 @@ exports[`GenerateShadowNodeH can generate fixture STRING_PROP 1`] = ` Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -834,10 +834,10 @@ exports[`GenerateShadowNodeH can generate fixture TWO_COMPONENTS_DIFFERENT_FILES Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ @@ -878,10 +878,10 @@ exports[`GenerateShadowNodeH can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = Map { "ShadowNodes.h" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateShadowNodeH.js */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateTests-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateTests-test.js.snap index c4add04c8956e4..9d1a6142b61fff 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateTests-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateTests-test.js.snap @@ -3,10 +3,10 @@ exports[`GenerateTests can generate fixture ARRAY_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -34,10 +34,10 @@ TEST(ArrayPropsNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -64,10 +64,10 @@ TEST(ArrayPropsNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture BOOLEAN_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -103,10 +103,10 @@ TEST(BooleanPropNativeComponentProps_disabled, etc) { exports[`GenerateTests can generate fixture COLOR_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -142,10 +142,10 @@ TEST(ColorPropNativeComponentProps_tintColor, etc) { exports[`GenerateTests can generate fixture COMMANDS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -172,10 +172,10 @@ TEST(CommandNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -211,10 +211,10 @@ TEST(CommandNativeComponentProps_accessibilityHint, etc) { exports[`GenerateTests can generate fixture DOUBLE_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -241,10 +241,10 @@ TEST(DoublePropNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -280,10 +280,10 @@ TEST(EventsNestedObjectNativeComponentProps_disabled, etc) { exports[`GenerateTests can generate fixture EVENT_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -319,10 +319,10 @@ TEST(EventsNativeComponentProps_disabled, etc) { exports[`GenerateTests can generate fixture EVENTS_WITH_PAPER_NAME 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -349,10 +349,10 @@ TEST(InterfaceOnlyComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -379,10 +379,10 @@ TEST(ExcludedAndroidComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -409,10 +409,10 @@ TEST(ExcludedAndroidIosComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture FLOAT_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -493,10 +493,10 @@ TEST(FloatPropNativeComponentProps_blurRadius6, etc) { exports[`GenerateTests can generate fixture IMAGE_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -533,10 +533,10 @@ TEST(ImagePropNativeComponentProps_thumbImage, etc) { exports[`GenerateTests can generate fixture INSETS_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -563,10 +563,10 @@ TEST(InsetsPropNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture INT32_ENUM_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -593,10 +593,10 @@ TEST(Int32EnumPropsNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture INTEGER_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -623,10 +623,10 @@ TEST(IntegerPropNativeComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture INTERFACE_ONLY 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -662,10 +662,10 @@ TEST(InterfaceOnlyComponentProps_accessibilityHint, etc) { exports[`GenerateTests can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -729,10 +729,10 @@ TEST(ImageColorPropNativeComponentProps_point, etc) { exports[`GenerateTests can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -759,10 +759,10 @@ TEST(NoPropsNoEventsComponentProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture OBJECT_PROPS 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -790,10 +790,10 @@ TEST(ObjectPropsProps_DoesNotDie, etc) { exports[`GenerateTests can generate fixture POINT_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -829,10 +829,10 @@ TEST(PointPropNativeComponentProps_startPoint, etc) { exports[`GenerateTests can generate fixture STRING_ENUM_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -886,10 +886,10 @@ TEST(StringEnumPropsNativeComponentProps_alignment_BottomRight, etc) { exports[`GenerateTests can generate fixture STRING_PROP 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -934,10 +934,10 @@ TEST(StringPropComponentProps_accessibilityRole, etc) { exports[`GenerateTests can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ @@ -991,10 +991,10 @@ TEST(MultiFile2NativeComponentProps_disabled, etc) { exports[`GenerateTests can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = ` Map { "Tests.cpp" => "/** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @generated by codegen project: GenerateTests.js * */ diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateViewConfigJs-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateViewConfigJs-test.js.snap index 099c42e270fb58..5ac7e416ac93a8 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateViewConfigJs-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GenerateViewConfigJs-test.js.snap @@ -4,10 +4,10 @@ exports[`GenerateViewConfigJs can generate fixture ARRAY_PROPS 1`] = ` Map { "ARRAY_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -49,10 +49,10 @@ exports[`GenerateViewConfigJs can generate fixture ARRAY_PROPS_WITH_NESTED_OBJEC Map { "ARRAY_PROPS_WITH_NESTED_OBJECTNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -80,10 +80,10 @@ exports[`GenerateViewConfigJs can generate fixture BOOLEAN_PROP 1`] = ` Map { "BOOLEAN_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -111,10 +111,10 @@ exports[`GenerateViewConfigJs can generate fixture COLOR_PROP 1`] = ` Map { "COLOR_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -144,10 +144,10 @@ exports[`GenerateViewConfigJs can generate fixture COMMANDS 1`] = ` Map { "COMMANDSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -183,10 +183,10 @@ exports[`GenerateViewConfigJs can generate fixture COMMANDS_AND_PROPS 1`] = ` Map { "COMMANDS_AND_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -225,10 +225,10 @@ exports[`GenerateViewConfigJs can generate fixture DOUBLE_PROPS 1`] = ` Map { "DOUBLE_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -261,10 +261,10 @@ exports[`GenerateViewConfigJs can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] Map { "EVENT_NESTED_OBJECT_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -302,10 +302,10 @@ exports[`GenerateViewConfigJs can generate fixture EVENT_PROPS 1`] = ` Map { "EVENT_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -363,10 +363,10 @@ exports[`GenerateViewConfigJs can generate fixture EVENTS_WITH_PAPER_NAME 1`] = Map { "EVENTS_WITH_PAPER_NAMENativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -421,10 +421,10 @@ exports[`GenerateViewConfigJs can generate fixture EXCLUDE_ANDROID 1`] = ` Map { "EXCLUDE_ANDROIDNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -449,10 +449,10 @@ exports[`GenerateViewConfigJs can generate fixture EXCLUDE_ANDROID_IOS 1`] = ` Map { "EXCLUDE_ANDROID_IOSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -477,10 +477,10 @@ exports[`GenerateViewConfigJs can generate fixture FLOAT_PROPS 1`] = ` Map { "FLOAT_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -513,10 +513,10 @@ exports[`GenerateViewConfigJs can generate fixture IMAGE_PROP 1`] = ` Map { "IMAGE_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -546,10 +546,10 @@ exports[`GenerateViewConfigJs can generate fixture INSETS_PROP 1`] = ` Map { "INSETS_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -579,10 +579,10 @@ exports[`GenerateViewConfigJs can generate fixture INT32_ENUM_PROP 1`] = ` Map { "INT32_ENUM_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -610,10 +610,10 @@ exports[`GenerateViewConfigJs can generate fixture INTEGER_PROPS 1`] = ` Map { "INTEGER_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -643,10 +643,10 @@ exports[`GenerateViewConfigJs can generate fixture INTERFACE_ONLY 1`] = ` Map { "INTERFACE_ONLYNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -684,10 +684,10 @@ exports[`GenerateViewConfigJs can generate fixture MULTI_NATIVE_PROP 1`] = ` Map { "MULTI_NATIVE_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -729,10 +729,10 @@ exports[`GenerateViewConfigJs can generate fixture NO_PROPS_NO_EVENTS 1`] = ` Map { "NO_PROPS_NO_EVENTSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -757,10 +757,10 @@ exports[`GenerateViewConfigJs can generate fixture OBJECT_PROPS 1`] = ` Map { "OBJECT_PROPSNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -788,10 +788,10 @@ exports[`GenerateViewConfigJs can generate fixture POINT_PROP 1`] = ` Map { "POINT_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -821,10 +821,10 @@ exports[`GenerateViewConfigJs can generate fixture STRING_ENUM_PROP 1`] = ` Map { "STRING_ENUM_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -852,10 +852,10 @@ exports[`GenerateViewConfigJs can generate fixture STRING_PROP 1`] = ` Map { "STRING_PROPNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -884,10 +884,10 @@ exports[`GenerateViewConfigJs can generate fixture TWO_COMPONENTS_DIFFERENT_FILE Map { "TWO_COMPONENTS_DIFFERENT_FILESNativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -925,10 +925,10 @@ exports[`GenerateViewConfigJs can generate fixture TWO_COMPONENTS_SAME_FILE 1`] Map { "TWO_COMPONENTS_SAME_FILENativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow * @@ -966,10 +966,10 @@ exports[`GenerateViewConfigJs can generate fixture with a deprecated view config Map { "DEPRECATED_VIEW_CONFIG_NAMENativeViewConfig.js" => " /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by a tool. * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Changes to this file may cause incorrect behavior and will be lost if + * the code is regenerated. * * @flow *