Simplify ModalHostView plugin setup

Summary:
Changelog: [internal]

Provide a default plugin function that provides core `RCTModalHostViewComponentView`. This makes for easier setup for standalone app migration.

Reviewed By: JoshuaGross, shergin

Differential Revision: D26150091

fbshipit-source-id: d39723b99c590d1a33fb7b628f809aa12b2f7589
This commit is contained in:
Samuel Susla
2021-02-04 03:43:03 -08:00
committed by Facebook GitHub Bot
parent c8c975f0d7
commit 33b600236a
@@ -256,3 +256,19 @@ static ModalHostViewEventEmitter::OnOrientationChange onOrientationChangeStruct(
}
@end
#ifdef __cplusplus
extern "C" {
#endif
// Can't the import generated Plugin.h because plugins are not in this BUCK target
Class<RCTComponentViewProtocol> RCTModalHostViewCls(void);
#ifdef __cplusplus
}
#endif
Class<RCTComponentViewProtocol> RCTModalHostViewCls(void)
{
return RCTModalHostViewComponentView.class;
}