/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/React/Modules/RCTSurfacePresenterStub.m
36 строк
966 B
Samuel Susla
Back out "refactor native animated to pass folly::dynamic to fabric" (#51392)
16 май 2025, 18:15
16 май 2025, 18:15
ba6323b
Код
Авторство
О чём код?
/* * 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. */ #import "RCTSurfacePresenterStub.h" @implementation RCTBridge (RCTSurfacePresenterStub) - (id<RCTSurfacePresenterStub>)surfacePresenter { return objc_getAssociatedObject(self, @selector(surfacePresenter)); } - (void)setSurfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter { objc_setAssociatedObject(self, @selector(surfacePresenter), surfacePresenter, OBJC_ASSOCIATION_RETAIN); } @end @implementation RCTBridgeProxy (RCTSurfacePresenterStub) - (id<RCTSurfacePresenterStub>)surfacePresenter { return objc_getAssociatedObject(self, @selector(surfacePresenter)); } - (void)setSurfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter { objc_setAssociatedObject(self, @selector(surfacePresenter), surfacePresenter, OBJC_ASSOCIATION_RETAIN); } @end