mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user