// Copyright 2016 wkh237@github. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. // @flow import { NativeModules, DeviceEventEmitter, Platform, NativeAppEventEmitter, } from 'react-native' const RNFetchBlob = NativeModules.RNFetchBlob /** * Get cookie according to the given url. * @param {string} url HTTP URL string. * @return {Promise>} Cookies of a specific domain. */ function getCookies(url:string):Promise> { return RNFetchBlob.getCookies(url) } export default { getCookies }