 
         viewDelegate.continueInApp(with: item, and: extraData)
     }
-    
+
     @objc(data:reject:)
     func data(_
             resolve: @escaping RCTPromiseResolveBlock,

                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

        var urlProvider:NSItemProvider! = nil
        var imageProvider:NSItemProvider! = nil
        var textProvider:NSItemProvider! = nil
        var dataProvider:NSItemProvider! = nil

        for provider in attachments {
            if provider.hasItemConformingToTypeIdentifier(kUTTypeURL as String) {
