| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | * |
| 7 | * @flow strict |
| 8 | */ |
| 9 | |
| 10 | import type { |
| 11 | PublicInstance, |
| 12 | PublicRootInstance, |
| 13 | } from './ReactNativePrivateInterface'; |
| 14 | |
| 15 | export default function createPublicInstance( |
| 16 | tag: number, |
| 17 | viewConfig: mixed, |
| 18 | internalInstanceHandle: mixed, |
| 19 | rootPublicInstance: PublicRootInstance | null, |
| 20 | ): PublicInstance { |
| 21 | return { |
| 22 | __nativeTag: tag, |
| 23 | __internalInstanceHandle: internalInstanceHandle, |
| 24 | __rootPublicInstance: rootPublicInstance, |
| 25 | }; |
| 26 | } |