Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined is not an object (evaluating Cookiemanager.clearCookies) #13

Open
parmeet9891 opened this issue Jan 2, 2018 · 3 comments
Open

Comments

@parmeet9891
Copy link

parmeet9891 commented Jan 2, 2018

When i click on logout button and press on 'Yes', it shows this error.
I have also done 'react-native link react-native-cookie', but still shows this error.

Importing Files
import InstagramLogin from 'react-native-instagram-login';
import Cookie from 'react-native-cookie';

Logout Code
`toggleInstagram= () => {
const {instagram}= this.state;

    if(instagram)
        Alert.alert(
        '',
        'Are you sure you want to remove Instagram account?',
        [
            {
                text: 'Yes', onPress: () => {
                  Cookie.clear().then(() => {
                    this.setState({ token: null, instagram:null, instagram_data:null })
                  })
            } },
            {text: 'No', style: 'cancel'}
        ]
    );

    else
        return this.refs.instagramLogin.show();
}`
@asifhussainoyo
Copy link

@parmeet9891 Did you get any solution for the above error??

@Dhanraj-bidchat
Copy link

Did you fixed it?
My Configurations:
"react": "16.8.3",
"react-native": "0.58.6",
"react-native-instagram-login": "1.1.1",
"react-native-cookie": "0.2.0"

@jtqtech
Copy link

jtqtech commented Aug 20, 2019

I am also having same problem

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

No branches or pull requests

4 participants