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

[Unhandled promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.RNCookieManager.clearCookie')] #14

Open
rastogitech opened this issue Jan 3, 2018 · 4 comments

Comments

@rastogitech
Copy link

I get an error while using

Cookie.clear().then(() => {
                console.log('Cookie cleared');
});

Npm: 4.2
Node: 7.10.1
React-native-cli: 2.0.1
React-native: 0.50.3

Logs are as follows:

 [Unhandled promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.RNCookieManager.clearCookie')]
- node_modules\react-native-cookie\cookie.android.js:22:44 in clear$
- node_modules\regenerator-runtime\runtime.js:63:44 in tryCatch
- node_modules\regenerator-runtime\runtime.js:337:30 in invoke
- node_modules\regenerator-runtime\runtime.js:96:28 in <unknown>
- node_modules\regenerator-runtime\runtime.js:63:44 in tryCatch
- node_modules\regenerator-runtime\runtime.js:139:28 in invoke
- node_modules\regenerator-runtime\runtime.js:184:17 in <unknown>
- node_modules\promise\setimmediate\core.js:45:7 in tryCallTwo
- node_modules\promise\setimmediate\core.js:200:23 in doResolve
- node_modules\promise\setimmediate\core.js:66:12 in Promise
- node_modules\regenerator-runtime\runtime.js:183:27 in callInvokeWithMethodAndArg
- node_modules\regenerator-runtime\runtime.js:206:12 in enqueue
- node_modules\regenerator-runtime\runtime.js:96:28 in <unknown>
- node_modules\regenerator-runtime\runtime.js:226:8 in async
- node_modules\react-native-cookie\cookie.android.js:6:15 in clear
* app\src\js\authentication\LoginScreen.js:108:8 in doLogIn
- node_modules\react-proxy\modules\createPrototypeProxy.js:44:35 in proxiedMethod
* app\src\js\authentication\LoginScreen.js:79:35 in onPress
- node_modules\react-native\Libraries\Components\Touchable\TouchableNativeFeedback.android.js:170:45 in touchableHandlePress
- node_modules\react-native\Libraries\Components\Touchable\Touchable.js:746:34 in _performSideEffectsForTransition
- ... 24 more stack frames from framework internals
@ozio
Copy link

ozio commented Jan 11, 2018

same here

@alexneo2003
Copy link

same issues
anybody help?

@racmartin
Copy link

racmartin commented Apr 23, 2018

...
import im.shimo.react.cookie.CookieManagerPackage; // IMPORT
...

public class MainApplication extends Application implements ReactApplication {
    ...
    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.asList(
              new MainReactPackage(),
              new CookieManagerPackage() // ADD
      );
      ...
  };

@gustavolima00
Copy link

i had the same issue

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

5 participants