mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[react-naitve] fix YellowBox type (#40817)
* [react-naitve] fix YellowBox type * add test
This commit is contained in:
Vendored
+2
-1
@@ -26,6 +26,7 @@
|
||||
// Romain Faust <https://github.com/romain-faust>
|
||||
// Be Birchall <https://github.com/bebebebebe>
|
||||
// Jesse Katsumata <https://github.com/Naturalclar>
|
||||
// Xianming Zhong <https://github.com/chinesedfan>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -8857,7 +8858,7 @@ export function findNodeHandle(
|
||||
|
||||
export function processColor(color: any): number;
|
||||
|
||||
export const YellowBox: React.Component<any, any> & { ignoreWarnings: (warnings: string[]) => void };
|
||||
export const YellowBox: React.ComponentClass<any, any> & { ignoreWarnings: (warnings: string[]) => void };
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
@@ -88,6 +88,7 @@ import {
|
||||
ProgressBarAndroid,
|
||||
PushNotificationIOS,
|
||||
AccessibilityInfo,
|
||||
YellowBox,
|
||||
} from "react-native";
|
||||
|
||||
declare module "react-native" {
|
||||
@@ -956,3 +957,6 @@ const PushNotificationTest = () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// YellowBox
|
||||
const YellowBoxTest = () => <YellowBox />;
|
||||
|
||||
Reference in New Issue
Block a user