Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

not Supporting in typescript #157

Open
Dhirajbhujbal opened this issue Sep 17, 2019 · 2 comments
Open

not Supporting in typescript #157

Dhirajbhujbal opened this issue Sep 17, 2019 · 2 comments

Comments

@Dhirajbhujbal
Copy link

found there is no package available for typescript

npm install @types/react-native-cookies

@vladinator1000
Copy link

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
    }
}

@safaiyeh
Copy link

safaiyeh commented Jan 2, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants