main
js 20 lines 552 Bytes
Raw
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 {PublicInstance} from './ReactNativePrivateInterface';
11
12 import {getNodeFromInternalInstanceHandle} from '../../../../ReactNativePublicCompat';
13
14 export default function getNodeFromPublicInstance(
15 publicInstance: PublicInstance,
16 ) {
17 return getNodeFromInternalInstanceHandle(
18 publicInstance.__internalInstanceHandle,
19 );
20 }