/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm
22 строки
629 B
Joe Vilches
Allow links that encorporate entire <Text> to be keyboard accessible
08 апр 2025, 00:24
08 апр 2025, 00:24
83fae86
Код
Авторство
О чём код?
/* * 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 "RCTAccessibilityElement.h" @implementation RCTAccessibilityElement - (CGRect)accessibilityFrame { UIView *container = (UIView *)self.accessibilityContainer; if (CGRectEqualToRect(_frameInContainerSpace, CGRectZero)) { return UIAccessibilityConvertFrameToScreenCoordinates(container.bounds, container); } else { return UIAccessibilityConvertFrameToScreenCoordinates(_frameInContainerSpace, container); } } @end