 @objc(ShareMenuReactView)
 public class ShareMenuReactView: NSObject {
     static var viewDelegate: ReactShareViewDelegate?
-    
+
     @objc
     static public func requiresMainQueueSetup() -> Bool {
         return false
     }
-    
+
     public static func attachViewDelegate(_ delegate: ReactShareViewDelegate!) {
         guard (ShareMenuReactView.viewDelegate == nil) else { return }
-        
+
         ShareMenuReactView.viewDelegate = delegate
     }
-    
+
     public static func detachViewDelegate() {
         ShareMenuReactView.viewDelegate = nil
     }
-    
+
     @objc(dismissExtension:)
     func dismissExtension(_ error: String?) {
         guard let extensionContext = ShareMenuReactView.viewDelegate?.loadExtensionContext() else {

                reject("error", error?.description, nil)
                return
            }
            
            resolve([MIME_TYPE_KEY: mimeType, DATA_KEY: data])
        }
    }
    
    func extractDataFromContext(context: NSExtensionContext, withCallback callback: @escaping (String?, String?, NSException?) -> Void) {
        let item:NSExtensionItem! = context.inputItems.first as? NSExtensionItem
        let attachments:[AnyObject]! = item.attachments


        viewDelegate.continueInApp(with: item, and: extraData)
    }

    @objc(data:reject:)
    func data(_
            resolve: @escaping RCTPromiseResolveBlock,
