mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6b22a4e802
Summary: This diff adds a NativeLogBox module implementation on iOS to manage rendering LogBox the way we render RedBox, except rendering a React Native component instead of a native view. The strategy here is: - initialize: will create a hidden window (the way redbox does) and render the LogBox to it - show: will show the window - hide: will hide the window Most of this is copied from the way RedBox works, the difference here is that we eagerly initialize the window with the `initialize` function so that it's warm by the time LogBox needs to render. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D18750008 fbshipit-source-id: 013e55ded55c8572bb08e0219ff4cd0060ebe0da
63 lines
2.0 KiB
Objective-C
63 lines
2.0 KiB
Objective-C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @generated by an internal plugin build system
|
|
*/
|
|
|
|
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
|
|
|
|
// FB Internal: FBCoreModulesPlugins.h is autogenerated by the build system.
|
|
#import <React/FBCoreModulesPlugins.h>
|
|
|
|
#else
|
|
|
|
// OSS-compatibility layer
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// RCTTurboModuleManagerDelegate should call this to resolve module classes.
|
|
Class RCTCoreModulesClassProvider(const char *name);
|
|
|
|
// Lookup functions
|
|
Class RCTAccessibilityManagerCls(void) __attribute__((used));
|
|
Class RCTAppearanceCls(void) __attribute__((used));
|
|
Class RCTDeviceInfoCls(void) __attribute__((used));
|
|
Class RCTExceptionsManagerCls(void) __attribute__((used));
|
|
Class RCTPlatformCls(void) __attribute__((used));
|
|
Class RCTClipboardCls(void) __attribute__((used));
|
|
Class RCTI18nManagerCls(void) __attribute__((used));
|
|
Class RCTSourceCodeCls(void) __attribute__((used));
|
|
Class RCTActionSheetManagerCls(void) __attribute__((used));
|
|
Class RCTAlertManagerCls(void) __attribute__((used));
|
|
Class RCTAsyncLocalStorageCls(void) __attribute__((used));
|
|
Class RCTTimingCls(void) __attribute__((used));
|
|
Class RCTStatusBarManagerCls(void) __attribute__((used));
|
|
Class RCTKeyboardObserverCls(void) __attribute__((used));
|
|
Class RCTAppStateCls(void) __attribute__((used));
|
|
Class RCTPerfMonitorCls(void) __attribute__((used));
|
|
Class RCTDevMenuCls(void) __attribute__((used));
|
|
Class RCTDevSettingsCls(void) __attribute__((used));
|
|
Class RCTRedBoxCls(void) __attribute__((used));
|
|
Class RCTLogBoxCls(void) __attribute__((used));
|
|
Class RCTTVNavigationEventEmitterCls(void) __attribute__((used));
|
|
Class RCTWebSocketExecutorCls(void) __attribute__((used));
|
|
Class RCTWebSocketModuleCls(void) __attribute__((used));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif // RN_DISABLE_OSS_PLUGIN_HEADER
|