react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

not Supporting in typescript

Open Dhirajbhujbal opened this issue 6 years ago • 2 comments

found there is no package available for typescript

npm install @types/react-native-cookies

Dhirajbhujbal avatar Sep 17 '19 17:09 Dhirajbhujbal

you need to add a cookieManager.d.ts file to your project

declare module "react-native-cookies" {
    function clearAll(useWebKit = false): void
    function get(url: string, useWebKit = false): string
    function set(cookie: string, useWebKit = false): void

    interface CookieManager {
        clearAll(useWebKit = false): void
        get(url: string, useWebKit = false): string
        set(cookie: string, useWebKit = false): void
    }
}

vladinator1000 avatar Nov 26 '19 15:11 vladinator1000

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store We can create issues and PRs there to continue the development of the project.

safaiyeh avatar Jan 02 '20 19:01 safaiyeh