mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Attach @deprecated tag and doc block to ProgressBarAndroid (#51136)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
React Native Bot
parent
8b8e1055ae
commit
e8b14c7b06
+6
@@ -17,6 +17,12 @@ import Platform from '../../Utilities/Platform';
|
||||
|
||||
export type {ProgressBarAndroidProps};
|
||||
|
||||
/**
|
||||
* 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>,
|
||||
|
||||
Reference in New Issue
Block a user