[add] LogBox stub

Close #1794
This commit is contained in:
Kyle Fang
2020-10-31 14:41:16 +08:00
committed by Nicolas Gallagher
parent 6624a70cca
commit cf91d75471
3 changed files with 19 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ module.exports = {
KeyboardAvoidingView: true,
LayoutAnimation: true,
Linking: true,
LogBox: true,
Modal: true,
NativeEventEmitter: true,
NativeModules: true,

View File

@@ -0,0 +1,17 @@
/**
* Copyright (c) 2016-present, Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
const LogBox = {
ignoreLogs() {},
ignoreAllLogs() {},
uninstall() {},
install() {}
};
export default LogBox;

View File

@@ -59,6 +59,7 @@ export { default as TouchableWithoutFeedback } from './exports/TouchableWithoutF
export { default as View } from './exports/View';
export { default as VirtualizedList } from './exports/VirtualizedList';
export { default as YellowBox } from './exports/YellowBox';
export { default as LogBox } from './exports/LogBox';
// compat (components)
export { default as DrawerLayoutAndroid } from './exports/DrawerLayoutAndroid';