🛠 Replace RCT Prefix Usage With RNI
Summary: Rename all components, classes, files and folders that are prefixed with `RCT` to `RNI`.
This commit is contained in:
parent
bddce88758
commit
3702dfcaaf
@ -7,23 +7,23 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
88DAC6EB273DEE1000AB068F /* UIMenu+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6D4273DEE1000AB068F /* UIMenu+Init.swift */; };
|
||||
88DAC6EC273DEE1000AB068F /* UIMenuElement+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6D5273DEE1000AB068F /* UIMenuElement+Init.swift */; };
|
||||
88DAC6ED273DEE1000AB068F /* UIContextMenuInteractionCommitStyle+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6D6273DEE1000AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */; };
|
||||
88DAC6EE273DEE1000AB068F /* UIColor+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6D9273DEE1000AB068F /* UIColor+Helpers.swift */; };
|
||||
88DAC6EF273DEE1000AB068F /* Encodable+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6DA273DEE1000AB068F /* Encodable+Helpers.swift */; };
|
||||
88DAC6F0273DEE1000AB068F /* RCTContextMenuButtonManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6DD273DEE1000AB068F /* RCTContextMenuButtonManager.m */; };
|
||||
88DAC6F1273DEE1000AB068F /* RCTContextMenuButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6DE273DEE1000AB068F /* RCTContextMenuButton.swift */; };
|
||||
88DAC6F2273DEE1000AB068F /* RCTContextMenuButtonManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6DF273DEE1000AB068F /* RCTContextMenuButtonManager.swift */; };
|
||||
88DAC6F3273DEE1000AB068F /* RCTContextMenuViewManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E1273DEE1000AB068F /* RCTContextMenuViewManager.swift */; };
|
||||
88DAC6F4273DEE1000AB068F /* RCTContextMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E2273DEE1000AB068F /* RCTContextMenuView.swift */; };
|
||||
88DAC6F5273DEE1000AB068F /* RCTContextMenuViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E3273DEE1000AB068F /* RCTContextMenuViewManager.m */; };
|
||||
88DAC6F6273DEE1000AB068F /* RCTContextMenuPreviewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E4273DEE1000AB068F /* RCTContextMenuPreviewController.swift */; };
|
||||
88DAC6F7273DEE1000AB068F /* RCTMenuPreviewConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E6273DEE1000AB068F /* RCTMenuPreviewConfig.swift */; };
|
||||
88DAC6F8273DEE1000AB068F /* RCTMenuActionItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E7273DEE1000AB068F /* RCTMenuActionItem.swift */; };
|
||||
88DAC6F9273DEE1000AB068F /* RCTMenuElement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E8273DEE1000AB068F /* RCTMenuElement.swift */; };
|
||||
88DAC6FA273DEE1000AB068F /* RCTMenuImageType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6E9273DEE1000AB068F /* RCTMenuImageType.swift */; };
|
||||
88DAC6FB273DEE1000AB068F /* RCTMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC6EA273DEE1000AB068F /* RCTMenuItem.swift */; };
|
||||
88DAC767273E729B00AB068F /* UIMenu+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC750273E729A00AB068F /* UIMenu+Init.swift */; };
|
||||
88DAC768273E729B00AB068F /* UIMenuElement+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC751273E729A00AB068F /* UIMenuElement+Init.swift */; };
|
||||
88DAC769273E729B00AB068F /* UIContextMenuInteractionCommitStyle+Init.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC752273E729A00AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */; };
|
||||
88DAC76A273E729B00AB068F /* UIColor+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC755273E729A00AB068F /* UIColor+Helpers.swift */; };
|
||||
88DAC76B273E729B00AB068F /* Encodable+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC756273E729A00AB068F /* Encodable+Helpers.swift */; };
|
||||
88DAC76C273E729B00AB068F /* RNIContextMenuButtonManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC759273E729A00AB068F /* RNIContextMenuButtonManager.m */; };
|
||||
88DAC76D273E729B00AB068F /* RNIContextMenuButtonManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC75A273E729A00AB068F /* RNIContextMenuButtonManager.swift */; };
|
||||
88DAC76E273E729B00AB068F /* RNIContextMenuButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC75B273E729A00AB068F /* RNIContextMenuButton.swift */; };
|
||||
88DAC76F273E729B00AB068F /* RNIContextMenuViewManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC75D273E729A00AB068F /* RNIContextMenuViewManager.swift */; };
|
||||
88DAC770273E729B00AB068F /* RNIContextMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC75E273E729A00AB068F /* RNIContextMenuView.swift */; };
|
||||
88DAC771273E729B00AB068F /* RNIContextMenuViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC75F273E729A00AB068F /* RNIContextMenuViewManager.m */; };
|
||||
88DAC772273E729B00AB068F /* RNIContextMenuPreviewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC760273E729A00AB068F /* RNIContextMenuPreviewController.swift */; };
|
||||
88DAC773273E729B00AB068F /* RNIMenuPreviewConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC762273E729A00AB068F /* RNIMenuPreviewConfig.swift */; };
|
||||
88DAC774273E729B00AB068F /* RNIMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC763273E729A00AB068F /* RNIMenuItem.swift */; };
|
||||
88DAC775273E729B00AB068F /* RNIMenuElement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC764273E729A00AB068F /* RNIMenuElement.swift */; };
|
||||
88DAC776273E729B00AB068F /* RNIMenuImageType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC765273E729A00AB068F /* RNIMenuImageType.swift */; };
|
||||
88DAC777273E729B00AB068F /* RNIMenuActionItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DAC766273E729A00AB068F /* RNIMenuActionItem.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
@ -40,24 +40,24 @@
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
134814201AA4EA6300B7C361 /* libIosContextMenu.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libIosContextMenu.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
88DAC6D4273DEE1000AB068F /* UIMenu+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIMenu+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC6D5273DEE1000AB068F /* UIMenuElement+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIMenuElement+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC6D6273DEE1000AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIContextMenuInteractionCommitStyle+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC6D7273DEE1000AB068F /* IosContextMenu-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "IosContextMenu-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
88DAC6D9273DEE1000AB068F /* UIColor+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+Helpers.swift"; sourceTree = "<group>"; };
|
||||
88DAC6DA273DEE1000AB068F /* Encodable+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Encodable+Helpers.swift"; sourceTree = "<group>"; };
|
||||
88DAC6DD273DEE1000AB068F /* RCTContextMenuButtonManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTContextMenuButtonManager.m; sourceTree = "<group>"; };
|
||||
88DAC6DE273DEE1000AB068F /* RCTContextMenuButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTContextMenuButton.swift; sourceTree = "<group>"; };
|
||||
88DAC6DF273DEE1000AB068F /* RCTContextMenuButtonManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTContextMenuButtonManager.swift; sourceTree = "<group>"; };
|
||||
88DAC6E1273DEE1000AB068F /* RCTContextMenuViewManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTContextMenuViewManager.swift; sourceTree = "<group>"; };
|
||||
88DAC6E2273DEE1000AB068F /* RCTContextMenuView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTContextMenuView.swift; sourceTree = "<group>"; };
|
||||
88DAC6E3273DEE1000AB068F /* RCTContextMenuViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTContextMenuViewManager.m; sourceTree = "<group>"; };
|
||||
88DAC6E4273DEE1000AB068F /* RCTContextMenuPreviewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTContextMenuPreviewController.swift; sourceTree = "<group>"; };
|
||||
88DAC6E6273DEE1000AB068F /* RCTMenuPreviewConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTMenuPreviewConfig.swift; sourceTree = "<group>"; };
|
||||
88DAC6E7273DEE1000AB068F /* RCTMenuActionItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTMenuActionItem.swift; sourceTree = "<group>"; };
|
||||
88DAC6E8273DEE1000AB068F /* RCTMenuElement.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTMenuElement.swift; sourceTree = "<group>"; };
|
||||
88DAC6E9273DEE1000AB068F /* RCTMenuImageType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTMenuImageType.swift; sourceTree = "<group>"; };
|
||||
88DAC6EA273DEE1000AB068F /* RCTMenuItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RCTMenuItem.swift; sourceTree = "<group>"; };
|
||||
88DAC750273E729A00AB068F /* UIMenu+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIMenu+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC751273E729A00AB068F /* UIMenuElement+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIMenuElement+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC752273E729A00AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIContextMenuInteractionCommitStyle+Init.swift"; sourceTree = "<group>"; };
|
||||
88DAC753273E729A00AB068F /* IosContextMenu-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "IosContextMenu-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
88DAC755273E729A00AB068F /* UIColor+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+Helpers.swift"; sourceTree = "<group>"; };
|
||||
88DAC756273E729A00AB068F /* Encodable+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Encodable+Helpers.swift"; sourceTree = "<group>"; };
|
||||
88DAC759273E729A00AB068F /* RNIContextMenuButtonManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNIContextMenuButtonManager.m; sourceTree = "<group>"; };
|
||||
88DAC75A273E729A00AB068F /* RNIContextMenuButtonManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIContextMenuButtonManager.swift; sourceTree = "<group>"; };
|
||||
88DAC75B273E729A00AB068F /* RNIContextMenuButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIContextMenuButton.swift; sourceTree = "<group>"; };
|
||||
88DAC75D273E729A00AB068F /* RNIContextMenuViewManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIContextMenuViewManager.swift; sourceTree = "<group>"; };
|
||||
88DAC75E273E729A00AB068F /* RNIContextMenuView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIContextMenuView.swift; sourceTree = "<group>"; };
|
||||
88DAC75F273E729A00AB068F /* RNIContextMenuViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNIContextMenuViewManager.m; sourceTree = "<group>"; };
|
||||
88DAC760273E729A00AB068F /* RNIContextMenuPreviewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIContextMenuPreviewController.swift; sourceTree = "<group>"; };
|
||||
88DAC762273E729A00AB068F /* RNIMenuPreviewConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIMenuPreviewConfig.swift; sourceTree = "<group>"; };
|
||||
88DAC763273E729A00AB068F /* RNIMenuItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIMenuItem.swift; sourceTree = "<group>"; };
|
||||
88DAC764273E729A00AB068F /* RNIMenuElement.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIMenuElement.swift; sourceTree = "<group>"; };
|
||||
88DAC765273E729A00AB068F /* RNIMenuImageType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIMenuImageType.swift; sourceTree = "<group>"; };
|
||||
88DAC766273E729A00AB068F /* RNIMenuActionItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNIMenuActionItem.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -82,82 +82,82 @@
|
||||
58B511D21A9E6C8500147676 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6D2273DEE1000AB068F /* src */,
|
||||
88DAC74E273E729A00AB068F /* src */,
|
||||
134814211AA4EA7D00B7C361 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6D2273DEE1000AB068F /* src */ = {
|
||||
88DAC74E273E729A00AB068F /* src */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6D3273DEE1000AB068F /* Extensions+Init */,
|
||||
88DAC6D7273DEE1000AB068F /* IosContextMenu-Bridging-Header.h */,
|
||||
88DAC6D8273DEE1000AB068F /* Extensions */,
|
||||
88DAC6DB273DEE1000AB068F /* ReactNative */,
|
||||
88DAC74F273E729A00AB068F /* Extensions+Init */,
|
||||
88DAC753273E729A00AB068F /* IosContextMenu-Bridging-Header.h */,
|
||||
88DAC754273E729A00AB068F /* Extensions */,
|
||||
88DAC757273E729A00AB068F /* ReactNative */,
|
||||
);
|
||||
path = src;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6D3273DEE1000AB068F /* Extensions+Init */ = {
|
||||
88DAC74F273E729A00AB068F /* Extensions+Init */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6D4273DEE1000AB068F /* UIMenu+Init.swift */,
|
||||
88DAC6D5273DEE1000AB068F /* UIMenuElement+Init.swift */,
|
||||
88DAC6D6273DEE1000AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */,
|
||||
88DAC750273E729A00AB068F /* UIMenu+Init.swift */,
|
||||
88DAC751273E729A00AB068F /* UIMenuElement+Init.swift */,
|
||||
88DAC752273E729A00AB068F /* UIContextMenuInteractionCommitStyle+Init.swift */,
|
||||
);
|
||||
path = "Extensions+Init";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6D8273DEE1000AB068F /* Extensions */ = {
|
||||
88DAC754273E729A00AB068F /* Extensions */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6D9273DEE1000AB068F /* UIColor+Helpers.swift */,
|
||||
88DAC6DA273DEE1000AB068F /* Encodable+Helpers.swift */,
|
||||
88DAC755273E729A00AB068F /* UIColor+Helpers.swift */,
|
||||
88DAC756273E729A00AB068F /* Encodable+Helpers.swift */,
|
||||
);
|
||||
path = Extensions;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6DB273DEE1000AB068F /* ReactNative */ = {
|
||||
88DAC757273E729A00AB068F /* ReactNative */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6DC273DEE1000AB068F /* RCTContextMenuButton */,
|
||||
88DAC6E0273DEE1000AB068F /* RCTContextMenuView */,
|
||||
88DAC6E5273DEE1000AB068F /* RCTContextMenu */,
|
||||
88DAC758273E729A00AB068F /* RNIContextMenuButton */,
|
||||
88DAC75C273E729A00AB068F /* RNIContextMenuView */,
|
||||
88DAC761273E729A00AB068F /* RNIContextMenu */,
|
||||
);
|
||||
path = ReactNative;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6DC273DEE1000AB068F /* RCTContextMenuButton */ = {
|
||||
88DAC758273E729A00AB068F /* RNIContextMenuButton */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6DD273DEE1000AB068F /* RCTContextMenuButtonManager.m */,
|
||||
88DAC6DE273DEE1000AB068F /* RCTContextMenuButton.swift */,
|
||||
88DAC6DF273DEE1000AB068F /* RCTContextMenuButtonManager.swift */,
|
||||
88DAC759273E729A00AB068F /* RNIContextMenuButtonManager.m */,
|
||||
88DAC75A273E729A00AB068F /* RNIContextMenuButtonManager.swift */,
|
||||
88DAC75B273E729A00AB068F /* RNIContextMenuButton.swift */,
|
||||
);
|
||||
path = RCTContextMenuButton;
|
||||
path = RNIContextMenuButton;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6E0273DEE1000AB068F /* RCTContextMenuView */ = {
|
||||
88DAC75C273E729A00AB068F /* RNIContextMenuView */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6E1273DEE1000AB068F /* RCTContextMenuViewManager.swift */,
|
||||
88DAC6E2273DEE1000AB068F /* RCTContextMenuView.swift */,
|
||||
88DAC6E3273DEE1000AB068F /* RCTContextMenuViewManager.m */,
|
||||
88DAC6E4273DEE1000AB068F /* RCTContextMenuPreviewController.swift */,
|
||||
88DAC75D273E729A00AB068F /* RNIContextMenuViewManager.swift */,
|
||||
88DAC75E273E729A00AB068F /* RNIContextMenuView.swift */,
|
||||
88DAC75F273E729A00AB068F /* RNIContextMenuViewManager.m */,
|
||||
88DAC760273E729A00AB068F /* RNIContextMenuPreviewController.swift */,
|
||||
);
|
||||
path = RCTContextMenuView;
|
||||
path = RNIContextMenuView;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
88DAC6E5273DEE1000AB068F /* RCTContextMenu */ = {
|
||||
88DAC761273E729A00AB068F /* RNIContextMenu */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
88DAC6E6273DEE1000AB068F /* RCTMenuPreviewConfig.swift */,
|
||||
88DAC6E7273DEE1000AB068F /* RCTMenuActionItem.swift */,
|
||||
88DAC6E8273DEE1000AB068F /* RCTMenuElement.swift */,
|
||||
88DAC6E9273DEE1000AB068F /* RCTMenuImageType.swift */,
|
||||
88DAC6EA273DEE1000AB068F /* RCTMenuItem.swift */,
|
||||
88DAC762273E729A00AB068F /* RNIMenuPreviewConfig.swift */,
|
||||
88DAC763273E729A00AB068F /* RNIMenuItem.swift */,
|
||||
88DAC764273E729A00AB068F /* RNIMenuElement.swift */,
|
||||
88DAC765273E729A00AB068F /* RNIMenuImageType.swift */,
|
||||
88DAC766273E729A00AB068F /* RNIMenuActionItem.swift */,
|
||||
);
|
||||
path = RCTContextMenu;
|
||||
path = RNIContextMenu;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
@ -217,23 +217,23 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
88DAC6EB273DEE1000AB068F /* UIMenu+Init.swift in Sources */,
|
||||
88DAC6F4273DEE1000AB068F /* RCTContextMenuView.swift in Sources */,
|
||||
88DAC6F3273DEE1000AB068F /* RCTContextMenuViewManager.swift in Sources */,
|
||||
88DAC6F5273DEE1000AB068F /* RCTContextMenuViewManager.m in Sources */,
|
||||
88DAC6FA273DEE1000AB068F /* RCTMenuImageType.swift in Sources */,
|
||||
88DAC6ED273DEE1000AB068F /* UIContextMenuInteractionCommitStyle+Init.swift in Sources */,
|
||||
88DAC6F9273DEE1000AB068F /* RCTMenuElement.swift in Sources */,
|
||||
88DAC6F8273DEE1000AB068F /* RCTMenuActionItem.swift in Sources */,
|
||||
88DAC6F2273DEE1000AB068F /* RCTContextMenuButtonManager.swift in Sources */,
|
||||
88DAC6F7273DEE1000AB068F /* RCTMenuPreviewConfig.swift in Sources */,
|
||||
88DAC6F1273DEE1000AB068F /* RCTContextMenuButton.swift in Sources */,
|
||||
88DAC6FB273DEE1000AB068F /* RCTMenuItem.swift in Sources */,
|
||||
88DAC6F0273DEE1000AB068F /* RCTContextMenuButtonManager.m in Sources */,
|
||||
88DAC6EF273DEE1000AB068F /* Encodable+Helpers.swift in Sources */,
|
||||
88DAC6F6273DEE1000AB068F /* RCTContextMenuPreviewController.swift in Sources */,
|
||||
88DAC6EC273DEE1000AB068F /* UIMenuElement+Init.swift in Sources */,
|
||||
88DAC6EE273DEE1000AB068F /* UIColor+Helpers.swift in Sources */,
|
||||
88DAC76F273E729B00AB068F /* RNIContextMenuViewManager.swift in Sources */,
|
||||
88DAC767273E729B00AB068F /* UIMenu+Init.swift in Sources */,
|
||||
88DAC769273E729B00AB068F /* UIContextMenuInteractionCommitStyle+Init.swift in Sources */,
|
||||
88DAC771273E729B00AB068F /* RNIContextMenuViewManager.m in Sources */,
|
||||
88DAC776273E729B00AB068F /* RNIMenuImageType.swift in Sources */,
|
||||
88DAC773273E729B00AB068F /* RNIMenuPreviewConfig.swift in Sources */,
|
||||
88DAC775273E729B00AB068F /* RNIMenuElement.swift in Sources */,
|
||||
88DAC774273E729B00AB068F /* RNIMenuItem.swift in Sources */,
|
||||
88DAC76C273E729B00AB068F /* RNIContextMenuButtonManager.m in Sources */,
|
||||
88DAC76D273E729B00AB068F /* RNIContextMenuButtonManager.swift in Sources */,
|
||||
88DAC777273E729B00AB068F /* RNIMenuActionItem.swift in Sources */,
|
||||
88DAC770273E729B00AB068F /* RNIContextMenuView.swift in Sources */,
|
||||
88DAC76E273E729B00AB068F /* RNIContextMenuButton.swift in Sources */,
|
||||
88DAC76B273E729B00AB068F /* Encodable+Helpers.swift in Sources */,
|
||||
88DAC772273E729B00AB068F /* RNIContextMenuPreviewController.swift in Sources */,
|
||||
88DAC768273E729B00AB068F /* UIMenuElement+Init.swift in Sources */,
|
||||
88DAC76A273E729B00AB068F /* UIColor+Helpers.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTMenuActionItem.swift
|
||||
// RNIMenuActionItem.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/23/20.
|
||||
@ -10,7 +10,7 @@ import UIKit;
|
||||
|
||||
|
||||
@available(iOS 13, *)
|
||||
class RCTMenuActionItem: RCTMenuElement {
|
||||
class RNIMenuActionItem: RNIMenuElement {
|
||||
|
||||
var actionKey : String;
|
||||
var actionTitle: String;
|
||||
@ -56,7 +56,7 @@ class RCTMenuActionItem: RCTMenuElement {
|
||||
// ---------------------------
|
||||
|
||||
@available(iOS 13, *)
|
||||
extension RCTMenuActionItem {
|
||||
extension RNIMenuActionItem {
|
||||
|
||||
var UIMenuElementAttributes: UIMenuElement.Attributes {
|
||||
UIMenuElement.Attributes(
|
||||
@ -102,13 +102,13 @@ extension RCTMenuActionItem {
|
||||
// -----------------
|
||||
|
||||
@available(iOS 13, *)
|
||||
extension RCTMenuActionItem {
|
||||
extension RNIMenuActionItem {
|
||||
|
||||
typealias UIActionHandlerWithDict = ([String: Any], UIAction) -> Void;
|
||||
|
||||
func makeUIAction(_ handler: @escaping UIActionHandlerWithDict) -> UIAction {
|
||||
#if DEBUG
|
||||
print("RCTMenuActionItem, makeUIAction...");
|
||||
print("RNIMenuActionItem, makeUIAction...");
|
||||
#endif
|
||||
|
||||
return UIAction(
|
||||
@ -9,8 +9,8 @@
|
||||
import Foundation
|
||||
|
||||
|
||||
class RCTMenuElement: Hashable, Encodable {
|
||||
static func == (lhs: RCTMenuElement, rhs: RCTMenuElement) -> Bool {
|
||||
class RNIMenuElement: Hashable, Encodable {
|
||||
static func == (lhs: RNIMenuElement, rhs: RNIMenuElement) -> Bool {
|
||||
return ObjectIdentifier(lhs) == ObjectIdentifier(rhs);
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTMenuImageType.swift
|
||||
// RNIMenuImageType.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/23/20.
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTMenuItem.swift
|
||||
// RNIMenuItem.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/23/20.
|
||||
@ -10,7 +10,7 @@ import UIKit;
|
||||
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
class RCTMenuItem: RCTMenuElement {
|
||||
class RNIMenuItem: RNIMenuElement {
|
||||
|
||||
// MARK: - Properties
|
||||
// ------------------
|
||||
@ -19,7 +19,7 @@ class RCTMenuItem: RCTMenuElement {
|
||||
var icon : RCTMenuIcon;
|
||||
|
||||
var menuOptions: [String]?;
|
||||
var menuItems : [RCTMenuElement]?;
|
||||
var menuItems : [RNIMenuElement]?;
|
||||
|
||||
// MARK: - Init
|
||||
// ------------
|
||||
@ -54,21 +54,21 @@ class RCTMenuItem: RCTMenuElement {
|
||||
|
||||
if let menuElements = dictionary["menuItems"] as? NSArray {
|
||||
self.menuItems = menuElements.compactMap {
|
||||
if let menuItem = RCTMenuItem(dictionary: $0 as? NSDictionary) {
|
||||
if let menuItem = RNIMenuItem(dictionary: $0 as? NSDictionary) {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, init - compactMap: Creating RCTMenuItem...");
|
||||
print("RNIMenuItem, init - compactMap: Creating RNIMenuItem...");
|
||||
#endif
|
||||
return menuItem;
|
||||
|
||||
} else if let menuAction = RCTMenuActionItem(dictionary: $0 as? NSDictionary) {
|
||||
} else if let menuAction = RNIMenuActionItem(dictionary: $0 as? NSDictionary) {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, init - compactMap: Creating RCTMenuActionItem...");
|
||||
print("RNIMenuItem, init - compactMap: Creating RNIMenuActionItem...");
|
||||
#endif
|
||||
return menuAction;
|
||||
|
||||
} else {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, init - compactMap: nil");
|
||||
print("RNIMenuItem, init - compactMap: nil");
|
||||
#endif
|
||||
return nil;
|
||||
};
|
||||
@ -86,7 +86,7 @@ class RCTMenuItem: RCTMenuElement {
|
||||
// ---------------------------
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
extension RCTMenuItem {
|
||||
extension RNIMenuItem {
|
||||
/// get `UIMenu.Options` from `menuOptions` strings
|
||||
var UIMenuOptions: UIMenu.Options {
|
||||
UIMenu.Options(
|
||||
@ -101,24 +101,24 @@ extension RCTMenuItem {
|
||||
// -----------------
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
extension RCTMenuItem {
|
||||
func createMenu(_ handler: @escaping RCTMenuActionItem.UIActionHandlerWithDict) -> UIMenu {
|
||||
extension RNIMenuItem {
|
||||
func createMenu(_ handler: @escaping RNIMenuActionItem.UIActionHandlerWithDict) -> UIMenu {
|
||||
let menuItems: [UIMenuElement]? = self.menuItems?.compactMap {
|
||||
if let menu = $0 as? RCTMenuItem {
|
||||
if let menu = $0 as? RNIMenuItem {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, createMenu item: RCTMenuItem");
|
||||
print("RNIMenuItem, createMenu item: RNIMenuItem");
|
||||
#endif
|
||||
return menu.createMenu(handler);
|
||||
|
||||
} else if let action = $0 as? RCTMenuActionItem {
|
||||
} else if let action = $0 as? RNIMenuActionItem {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, createMenu item: RCTMenuActionItem");
|
||||
print("RNIMenuItem, createMenu item: RNIMenuActionItem");
|
||||
#endif
|
||||
return action.makeUIAction(handler);
|
||||
|
||||
} else {
|
||||
#if DEBUG
|
||||
print("RCTMenuItem, createMenu item: nil");
|
||||
print("RNIMenuItem, createMenu item: nil");
|
||||
#endif
|
||||
return nil;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTMenuPreviewConfig.swift
|
||||
// RNIMenuPreviewConfig.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 11/8/20.
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTContextMenuButton.swift
|
||||
// RNIContextMenuButton.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/28/20.
|
||||
@ -10,7 +10,7 @@ import UIKit;
|
||||
|
||||
|
||||
@available(iOS 14, *)
|
||||
class RCTContextMenuButton: UIButton {
|
||||
class RNIContextMenuButton: UIButton {
|
||||
|
||||
// MARK: - Properties
|
||||
// ------------------
|
||||
@ -38,13 +38,13 @@ class RCTContextMenuButton: UIButton {
|
||||
didSet {
|
||||
guard
|
||||
let menuConfig = self.menuConfig, menuConfig.count > 0,
|
||||
let rootMenuConfig = RCTMenuItem(dictionary: menuConfig)
|
||||
let rootMenuConfig = RNIMenuItem(dictionary: menuConfig)
|
||||
else { return };
|
||||
|
||||
#if DEBUG
|
||||
print("RCTContextMenuButton"
|
||||
print("RNIContextMenuButton"
|
||||
+ " - menuConfig didSet"
|
||||
+ " - RCTMenuItem init"
|
||||
+ " - RNIMenuItem init"
|
||||
);
|
||||
#endif
|
||||
|
||||
@ -122,7 +122,7 @@ class RCTContextMenuButton: UIButton {
|
||||
// -----------------------------
|
||||
|
||||
@available(iOS 14, *)
|
||||
extension RCTContextMenuButton {
|
||||
extension RNIContextMenuButton {
|
||||
@objc func dissmissMenu(){
|
||||
self.contextMenuInteraction?.dismissMenu();
|
||||
};
|
||||
@ -132,14 +132,14 @@ extension RCTContextMenuButton {
|
||||
// ----------------------------------------
|
||||
|
||||
@available(iOS 14, *)
|
||||
extension RCTContextMenuButton {
|
||||
extension RNIContextMenuButton {
|
||||
|
||||
// context menu display begins
|
||||
override func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willDisplayMenuFor configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
|
||||
super.contextMenuInteraction(interaction, willDisplayMenuFor: configuration, animator: animator);
|
||||
|
||||
#if DEBUG
|
||||
print("RCTContextMenuButton, UIContextMenuInteractionDelegate"
|
||||
print("RNIContextMenuButton, UIContextMenuInteractionDelegate"
|
||||
+ " - contextMenuInteraction: will show"
|
||||
);
|
||||
#endif
|
||||
@ -157,7 +157,7 @@ extension RCTContextMenuButton {
|
||||
super.contextMenuInteraction(interaction, willEndFor: configuration, animator: animator);
|
||||
|
||||
#if DEBUG
|
||||
print("RCTContextMenuButton, UIContextMenuInteractionDelegate"
|
||||
print("RNIContextMenuButton, UIContextMenuInteractionDelegate"
|
||||
+ " - contextMenuInteraction: will hide"
|
||||
);
|
||||
#endif
|
||||
@ -183,7 +183,7 @@ extension RCTContextMenuButton {
|
||||
};
|
||||
|
||||
@available(iOS 14, *)
|
||||
extension RCTContextMenuButton: UIGestureRecognizerDelegate {
|
||||
extension RNIContextMenuButton: UIGestureRecognizerDelegate {
|
||||
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
|
||||
return true;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTContextMenuButtonManager.m
|
||||
// RNIContextMenuButtonManager.m
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/28/20.
|
||||
@ -9,7 +9,7 @@
|
||||
#import <React/RCTViewManager.h>
|
||||
|
||||
|
||||
@interface RCT_EXTERN_MODULE(RCTContextMenuButtonManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(RNIContextMenuButtonManager, RCTViewManager)
|
||||
|
||||
// MARK: - Export Props - Events
|
||||
// -----------------------------
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTContextMenuButtonManager.swift
|
||||
// RNIContextMenuButtonManager.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 10/28/20.
|
||||
@ -9,8 +9,8 @@
|
||||
import UIKit;
|
||||
|
||||
|
||||
@objc(RCTContextMenuButtonManager)
|
||||
class RCTContextMenuButtonManager: RCTViewManager {
|
||||
@objc(RNIContextMenuButtonManager)
|
||||
class RNIContextMenuButtonManager: RCTViewManager {
|
||||
|
||||
override static func requiresMainQueueSetup() -> Bool {
|
||||
return true;
|
||||
@ -18,7 +18,7 @@ class RCTContextMenuButtonManager: RCTViewManager {
|
||||
|
||||
override func view() -> UIView! {
|
||||
if #available(iOS 14, *) {
|
||||
return RCTContextMenuButton(bridge: self.bridge);
|
||||
return RNIContextMenuButton(bridge: self.bridge);
|
||||
|
||||
} else {
|
||||
return RCTView();
|
||||
@ -29,7 +29,7 @@ class RCTContextMenuButtonManager: RCTViewManager {
|
||||
DispatchQueue.main.async {
|
||||
guard #available(iOS 14, *),
|
||||
let view = self.bridge.uiManager.view(forReactTag: node),
|
||||
let contextMenuButton = view as? RCTContextMenuButton
|
||||
let contextMenuButton = view as? RNIContextMenuButton
|
||||
else { return };
|
||||
|
||||
contextMenuButton.dissmissMenu();
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTContextMenuPreviewController.swift
|
||||
// RNIContextMenuPreviewController.swift
|
||||
// IosContextMenuExample
|
||||
//
|
||||
// Created by Dominic Go on 11/2/20.
|
||||
@ -10,7 +10,7 @@ import UIKit;
|
||||
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
class RCTContextMenuPreviewController: UIViewController {
|
||||
class RNIContextMenuPreviewController: UIViewController {
|
||||
|
||||
var previewConfig = PreviewConfig();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
//
|
||||
// RCTContextMenuView.swift
|
||||
// RNIContextMenuView.swift
|
||||
// nativeUIModulesTest
|
||||
//
|
||||
// Created by Dominic Go on 7/14/20.
|
||||
@ -9,7 +9,7 @@ import UIKit;
|
||||
|
||||
|
||||
@available(iOS 13, *)
|
||||
class RCTContextMenuView: UIView {
|
||||
class RNIContextMenuView: UIView {
|
||||
|
||||
// MARK: - Properties
|
||||
// ------------------
|
||||
@ -22,7 +22,7 @@ class RCTContextMenuView: UIView {
|
||||
var contextMenuInteraction: UIContextMenuInteraction?;
|
||||
|
||||
weak var reactPreviewView : UIView?;
|
||||
weak var previewController: RCTContextMenuPreviewController?;
|
||||
weak var previewController: RNIContextMenuPreviewController?;
|
||||
|
||||
// MARK: - RN Exported Event Props
|
||||
// -------------------------------
|
||||
@ -43,17 +43,17 @@ class RCTContextMenuView: UIView {
|
||||
// MARK: - RN Exported Props
|
||||
// -------------------------
|
||||
|
||||
private var _menuConfig: RCTMenuItem?;
|
||||
private var _menuConfig: RNIMenuItem?;
|
||||
@objc var menuConfig: NSDictionary? {
|
||||
didSet {
|
||||
guard
|
||||
let menuConfig = self.menuConfig, menuConfig.count > 0,
|
||||
let rootMenuConfig = RCTMenuItem(dictionary: menuConfig)
|
||||
let rootMenuConfig = RNIMenuItem(dictionary: menuConfig)
|
||||
else { return };
|
||||
|
||||
#if DEBUG
|
||||
print("menuConfig didSet"
|
||||
+ " - RCTMenuItem init"
|
||||
+ " - RNIMenuItem init"
|
||||
+ " - menuConfig count: \(menuConfig.count)"
|
||||
);
|
||||
#endif
|
||||
@ -146,7 +146,7 @@ class RCTContextMenuView: UIView {
|
||||
// -----------------------------
|
||||
|
||||
@available(iOS 13, *)
|
||||
extension RCTContextMenuView {
|
||||
extension RNIContextMenuView {
|
||||
@objc func dissmissMenu(){
|
||||
self.contextMenuInteraction?.dismissMenu();
|
||||
};
|
||||
@ -156,7 +156,7 @@ extension RCTContextMenuView {
|
||||
// -------------------------
|
||||
|
||||
@available(iOS 13, *)
|
||||
fileprivate extension RCTContextMenuView {
|
||||
fileprivate extension RNIContextMenuView {
|
||||
|
||||
func notifyForBoundsChange(_ newBounds: CGRect){
|
||||
guard
|
||||
@ -171,7 +171,7 @@ fileprivate extension RCTContextMenuView {
|
||||
func createMenu(_ suggestedAction: [UIMenuElement]) -> UIMenu? {
|
||||
guard let menuConfig = self._menuConfig else {
|
||||
#if DEBUG
|
||||
print("RCTContextMenuView, createMenu"
|
||||
print("RNIContextMenuView, createMenu"
|
||||
+ " - guard check failed, menuConfig: nil"
|
||||
);
|
||||
#endif
|
||||
@ -193,7 +193,7 @@ fileprivate extension RCTContextMenuView {
|
||||
guard previewConfig.previewType != .DEFAULT
|
||||
else { return nil };
|
||||
|
||||
let vc = RCTContextMenuPreviewController();
|
||||
let vc = RNIContextMenuPreviewController();
|
||||
vc.reactView = self.reactPreviewView;
|
||||
vc.previewConfig = previewConfig;
|
||||
|
||||
@ -261,7 +261,7 @@ fileprivate extension RCTContextMenuView {
|
||||
// ----------------------------------------
|
||||
|
||||
@available(iOS 13, *)
|
||||
extension RCTContextMenuView: UIContextMenuInteractionDelegate {
|
||||
extension RNIContextMenuView: UIContextMenuInteractionDelegate {
|
||||
|
||||
// create context menu
|
||||
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
|
||||
@ -277,7 +277,7 @@ extension RCTContextMenuView: UIContextMenuInteractionDelegate {
|
||||
// context menu display begins
|
||||
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willDisplayMenuFor configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
|
||||
#if DEBUG
|
||||
print("RCTContextMenuView, UIContextMenuInteractionDelegate"
|
||||
print("RNIContextMenuView, UIContextMenuInteractionDelegate"
|
||||
+ " - contextMenuInteraction: will show"
|
||||
);
|
||||
#endif
|
||||
@ -293,7 +293,7 @@ extension RCTContextMenuView: UIContextMenuInteractionDelegate {
|
||||
// context menu display ends
|
||||
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willEndFor configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
|
||||
#if DEBUG
|
||||
print("RCTContextMenuView, UIContextMenuInteractionDelegate"
|
||||
print("RNIContextMenuView, UIContextMenuInteractionDelegate"
|
||||
+ " - contextMenuInteraction: will hide"
|
||||
);
|
||||
#endif
|
||||
@ -320,7 +320,7 @@ extension RCTContextMenuView: UIContextMenuInteractionDelegate {
|
||||
// context menu preview tapped
|
||||
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
|
||||
#if DEBUG
|
||||
print("RCTContextMenuView, UIContextMenuInteractionDelegate"
|
||||
print("RNIContextMenuView, UIContextMenuInteractionDelegate"
|
||||
+ " - contextMenuInteraction: preview tapped"
|
||||
);
|
||||
#endif
|
||||
@ -9,7 +9,7 @@
|
||||
#import <React/RCTViewManager.h>
|
||||
|
||||
|
||||
@interface RCT_EXTERN_MODULE(RCTContextMenuViewManager, RCTViewManager)
|
||||
@interface RCT_EXTERN_MODULE(RNIContextMenuViewManager, RCTViewManager)
|
||||
|
||||
// MARK: - Export Props - Events
|
||||
// -----------------------------
|
||||
@ -7,8 +7,8 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
@objc(RCTContextMenuViewManager)
|
||||
class RCTContextMenuViewManager: RCTViewManager {
|
||||
@objc(RNIContextMenuViewManager)
|
||||
class RNIContextMenuViewManager: RCTViewManager {
|
||||
|
||||
override static func requiresMainQueueSetup() -> Bool {
|
||||
return true;
|
||||
@ -16,7 +16,7 @@ class RCTContextMenuViewManager: RCTViewManager {
|
||||
|
||||
override func view() -> UIView! {
|
||||
if #available(iOS 13.0, *) {
|
||||
return RCTContextMenuView(bridge: self.bridge);
|
||||
return RNIContextMenuView(bridge: self.bridge);
|
||||
|
||||
} else {
|
||||
return RCTView();
|
||||
@ -27,7 +27,7 @@ class RCTContextMenuViewManager: RCTViewManager {
|
||||
DispatchQueue.main.async {
|
||||
guard #available(iOS 13.0, *),
|
||||
let view = self.bridge.uiManager.view(forReactTag: node),
|
||||
let contextMenuView = view as? RCTContextMenuView
|
||||
let contextMenuView = view as? RNIContextMenuView
|
||||
else { return };
|
||||
|
||||
contextMenuView.dissmissMenu();
|
||||
@ -17,7 +17,7 @@ const isContextMenuViewSupported = (
|
||||
);
|
||||
|
||||
|
||||
const componentName = "RCTContextMenuButton";
|
||||
const componentName = "RNIContextMenuButton";
|
||||
const NativeCommands = UIManager[componentName]?.Commands;
|
||||
const NativeComponent = requireNativeComponent(componentName);
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ const isContextMenuSupported = (
|
||||
);
|
||||
|
||||
|
||||
const componentName = "RCTContextMenuView";
|
||||
const componentName = "RNIContextMenuView";
|
||||
const NativeCommands = UIManager[componentName]?.Commands;
|
||||
const NativeComponent = requireNativeComponent(componentName);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user