mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unstable_enableLogBox (#49427)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49427 Also refine lint/`$FlowFixMe`s in `index.js`. Changelog: [General][Breaking] Remove deprecated `unstable_enableLogBox` function. LogBox is enabled by default. Reviewed By: cortinico Differential Revision: D69656713 fbshipit-source-id: 21ce775c84e17da036583f099a17f6524f9b9bf1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f940be1caa
commit
7368265107
@@ -8959,7 +8959,6 @@ declare module.exports: {
|
||||
uiViewClassName: string
|
||||
) => HostComponent<T>,
|
||||
get RootTagContext(): RootTagContext,
|
||||
get unstable_enableLogBox(): () => void,
|
||||
};
|
||||
"
|
||||
`;
|
||||
|
||||
Vendored
+2
-10
@@ -8,6 +8,8 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
/* eslint-disable lint/no-commonjs-exports */
|
||||
|
||||
'use strict';
|
||||
'use client';
|
||||
|
||||
@@ -119,7 +121,6 @@ module.exports = {
|
||||
get Button(): Button {
|
||||
return require('./Libraries/Components/Button').default;
|
||||
},
|
||||
// $FlowFixMe[value-as-type]
|
||||
get DrawerLayoutAndroid(): DrawerLayoutAndroid {
|
||||
return require('./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid')
|
||||
.default;
|
||||
@@ -151,7 +152,6 @@ module.exports = {
|
||||
get Pressable(): Pressable {
|
||||
return require('./Libraries/Components/Pressable/Pressable').default;
|
||||
},
|
||||
// $FlowFixMe[value-as-type]
|
||||
get ProgressBarAndroid(): ProgressBarAndroid {
|
||||
warnOnce(
|
||||
'progress-bar-android-moved',
|
||||
@@ -225,7 +225,6 @@ module.exports = {
|
||||
// Include any types exported in the Animated module together with its default export, so
|
||||
// you can references types such as Animated.Numeric
|
||||
get Animated(): {...$Diff<AnimatedModule, {default: any}>, ...Animated} {
|
||||
// $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
|
||||
return require('./Libraries/Animated/Animated').default;
|
||||
},
|
||||
get Appearance(): Appearance {
|
||||
@@ -326,7 +325,6 @@ module.exports = {
|
||||
get Systrace(): Systrace {
|
||||
return require('./Libraries/Performance/Systrace');
|
||||
},
|
||||
// $FlowFixMe[value-as-type]
|
||||
get ToastAndroid(): ToastAndroid {
|
||||
return require('./Libraries/Components/ToastAndroid/ToastAndroid').default;
|
||||
},
|
||||
@@ -391,12 +389,6 @@ module.exports = {
|
||||
get RootTagContext(): RootTagContext {
|
||||
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
||||
},
|
||||
get unstable_enableLogBox(): () => void {
|
||||
return () =>
|
||||
console.warn(
|
||||
'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
if (__DEV__) {
|
||||
|
||||
Reference in New Issue
Block a user