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

ExceptionsManager.js:94 RNCookieManagerIOS.getAll was called with 1 arguments but expects 0 arguments.Β #160

@cgfeel

Description

@cgfeel

I used RN 0.60.5, and got the following error:

ExceptionsManager.js:94 RNCookieManagerIOS.getAll was called with 1 arguments but expects 0 arguments. If you haven't changed this method yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.

My code:

import React from 'react';
import {Button} from 'react-native';

import CookieManager from 'react-native-cookies';

const useWebKit = true;
const onCookiesGet = () => {
    CookieManager.getAll(useWebKit).then(res => {
        console.log('CookieManager.getAll =>', res);
    });
};

const App = () => {
    return (
        <Button onPress={onCookiesGet}  title="getCookies" />
    );
};

export default App;

According to https://github.com/joeferraro/react-native-cookies#webkit-support-ios-only, it does say to pass a bool with the url to use the webkit support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions