12345678910111213141516171819202122232425262728293031323334353637 |
-
-
-
-
- import {
- NativeModules,
- DeviceEventEmitter,
- Platform,
- NativeAppEventEmitter,
- } from 'react-native'
-
- const RNFetchBlob = NativeModules.RNFetchBlob
-
-
- function getCookies(domain:string):Promise<Array<String>> {
- return RNFetchBlob.getCookies(domain || '')
- }
-
-
- function removeCookies(domain:?string):Promise<null> {
- return RNFetchBlob.removeCookies(domain || '')
- }
-
- export default {
- getCookies,
- removeCookies
- }
|