/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js
46 строк
2 KB
Tim Yung
RN: Sort Pragmas in Headers (#51554)
23 май 2025, 07:18
23 май 2025, 07:18
1977dd6
Код
Авторство
О чём код?
/** * 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-local * @format */ 'use strict'; import typeof ProgressBarAndroidNativeComponentType from './ProgressBarAndroidNativeComponent'; import type {ProgressBarAndroidProps} from './ProgressBarAndroidTypes'; import Platform from '../../Utilities/Platform'; export type {ProgressBarAndroidProps}; // A utility type to preserve the semantics of the union uses in the definition // of ProgressBarAndroidProps. TS's Omit does not distribute over unions, so // we define our own version which does. This does not affect Flow. // $FlowExpectedError[unclear-type] type Omit<T, K> = T extends any ? Pick<T, Exclude<$Keys<T>, K>> : T; /** * ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. * It can now be installed and imported from `@react-native-community/progress-bar-android` instead of 'react-native'. * @see https://github.com/react-native-community/progress-bar-android * @deprecated */ let ProgressBarAndroid: component( ref?: React.RefSetter< React.ElementRef<ProgressBarAndroidNativeComponentType>, >, ...props: Omit<ProgressBarAndroidProps, empty> ); if (Platform.OS === 'android') { ProgressBarAndroid = require('./ProgressBarAndroid').default; } else { ProgressBarAndroid = require('../UnimplementedViews/UnimplementedView') .default as $FlowFixMe; } export default ProgressBarAndroid;