/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/createPublicInstance.js
26 строк
630 B
Rubén Norte
[RN] Add support for document instance in React Native (#32260)
29 янв 2025, 20:07
Не верифицирован
29 янв 2025, 20:07
b2357ec
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict */ import type { PublicInstance, PublicRootInstance, } from './ReactNativePrivateInterface'; export default function createPublicInstance( tag: number, viewConfig: mixed, internalInstanceHandle: mixed, rootPublicInstance: PublicRootInstance | null, ): PublicInstance { return { __nativeTag: tag, __internalInstanceHandle: internalInstanceHandle, __rootPublicInstance: rootPublicInstance, }; }