[react-naitve] fix YellowBox type (#40817)

* [react-naitve] fix YellowBox type

* add test
This commit is contained in:
Xianming Zhong
2019-12-10 11:07:27 -05:00
committed by Orta
parent cc312e7c0a
commit 446608b6e0
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -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 };
//////////////////////////////////////////////////////////////////////////
//
+4
View File
@@ -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 />;