mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: While working on a fix for https://github.com/facebook/react-native/issues/29974 (I have a draft for that already (https://github.com/gabrieldonadel/react-native/pull/16), just waiting for https://github.com/facebook/react-native/pull/34406 to get merged) I noticed that the `KeyboardAvoidingView` tests on RNTester on iOS were not working with Fabric enabled because the `ModalHostView` component was still not implemented. Upon some more investigation, I found this code suggestion from Milker90 (https://github.com/facebook/react-native/issues/33652#issuecomment-1214675790) that enables the Modal component on iOS when Fabric is enabled. Closes https://github.com/facebook/react-native/issues/33652 ## Changelog [iOS] [Added] - Add support for Modal on iOS when Fabric is enabled Pull Request resolved: https://github.com/facebook/react-native/pull/34487 Test Plan: 1. With Fabric enabled open the RNTester app and navigate to the Modal page 2. Test the `Modal` component through the sections changing props https://user-images.githubusercontent.com/11707729/186289099-5223907d-b300-46bf-bfde-73259c29d544.mov Reviewed By: christophpurrer Differential Revision: D38981895 Pulled By: cipolleschi fbshipit-source-id: cd493a8d2035900da2576323bc112e2565df4834
54 lines
1.9 KiB
Objective-C
54 lines
1.9 KiB
Objective-C
/**
|
|
* Copyright (c) Meta Platforms, Inc. and 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: FBRCTFabricComponentsPlugins.h is autogenerated by the build system.
|
|
#import <React/FBRCTFabricComponentsPlugins.h>
|
|
|
|
#else
|
|
|
|
// OSS-compatibility layer
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <RCTThirdPartyFabricComponentsProvider.h>
|
|
#import <React/RCTComponentViewProtocol.h>
|
|
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
Class<RCTComponentViewProtocol> RCTFabricComponentsProvider(const char *name);
|
|
|
|
// Lookup functions
|
|
Class<RCTComponentViewProtocol> RCTSafeAreaViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTScrollViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTPullToRefreshViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTActivityIndicatorViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTSliderCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTSwitchCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTUnimplementedNativeViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTParagraphCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTTextInputCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTInputAccessoryCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTViewCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTImageCls(void) __attribute__((used));
|
|
Class<RCTComponentViewProtocol> RCTModalHostViewCls(void) __attribute__((used));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif // RN_DISABLE_OSS_PLUGIN_HEADER
|