Skip to content

gettting this error [TypeError: _reactNative.Linking.removeEventListener is not a function (it is undefined)] on calling login function #108

@antiergit

Description

@antiergit

on pressing button gmail is opening after successful signin i am falling in catch giving this error
[TypeError: _reactNative.Linking.removeEventListener is not a function (it is undefined)] , Although same code working fine for ios and i am getting web3auth response

   using following code 
   
   try {
    await this.web3auth.login({
      redirectUrl: "myUrl",
      mfaLevel: 'none',
      loginProvider: loginProvider,
    });
    this.setState({ isLoading: false });


    console.log('chk res web3Auth:::::res', this.web3auth);
    console.log('chk res web3Auth:::::userInfo', this.web3auth.state.userInfo.name);
    console.log('chk res web3Auth:::::privKey', this.web3auth.state.privKey);

  } catch (error) {
    this.setState({ isLoading: false });
    //await this.web3auth.logout();
    console.log('chk error web3Auth:::::res', error);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions