Skip to content

Commit e8b14c7

Browse files
coadoreact-native-bot
authored andcommitted
Attach @deprecated tag and doc block to ProgressBarAndroid (#51136)
Summary: Pull Request resolved: #51136 This diff attaches doc block to ProgressBarAndroid copied from the manual TS types. Generated types result: ```ts import * as React from "react"; import type $$IMPORT_TYPEOF_1$$ from "./ProgressBarAndroidNativeComponent"; type ProgressBarAndroidNativeComponentType = typeof $$IMPORT_TYPEOF_1$$; import type { ProgressBarAndroidProps } from "./ProgressBarAndroidTypes"; export type { ProgressBarAndroidProps }; declare let ProgressBarAndroid: (props: Omit<ProgressBarAndroidProps, keyof { ref?: React.Ref<React.ComponentRef<ProgressBarAndroidNativeComponentType>>; }> & { ref?: React.Ref<React.ComponentRef<ProgressBarAndroidNativeComponentType>>; }) => React.ReactNode; /** * 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 */ declare const $$ProgressBarAndroid: typeof ProgressBarAndroid; declare type $$ProgressBarAndroid = typeof $$ProgressBarAndroid; export default $$ProgressBarAndroid; ``` Changelog: [Internal] Reviewed By: robhogan Differential Revision: D73855212 fbshipit-source-id: c6c09ea68c9f61f305f96c0954370bb938fc59d9
1 parent 8b8e105 commit e8b14c7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ import Platform from '../../Utilities/Platform';
1717

1818
export type {ProgressBarAndroidProps};
1919

20+
/**
21+
* ProgressBarAndroid has been extracted from react-native core and will be removed in a future release.
22+
* It can now be installed and imported from `@react-native-community/progress-bar-android` instead of 'react-native'.
23+
* @see https://github.com/react-native-community/progress-bar-android
24+
* @deprecated
25+
*/
2026
let ProgressBarAndroid: component(
2127
ref?: React.RefSetter<
2228
React.ElementRef<ProgressBarAndroidNativeComponentType>,

0 commit comments

Comments
 (0)