wmcmahan / react-native-calendar-reminders

React Native Module for IOS Calendar Reminders
MIT License
90 stars 20 forks source link

Module RCTNativeAppEventEmitter is not a registered callable module #10

Closed cgilboy closed 8 years ago

cgilboy commented 8 years ago

Hello!

I am also seeing the same exception as addressed in PR 9: Module RCTNativeAppEventEmitter is not a registered callable module. in response to calling RNCalendarReminders.saveReminder() using RN 0.19. The PR fixes the issue for me.

I was able to reproduce this in a new react-native 0.19 app that includes nothing but react-native-calendar-reminders. Let me know if I can provide any other info.

wmcmahan commented 8 years ago

Thanks the help @cgilboy. I'm able to reproduce this error in RN 0.19 if I don't include RN's NativeAppEventEmitter module:

var {NativeAppEventEmitter} = require('react-native');

// or

const {NativeAppEventEmitter} = React;

Does adding the NativeAppEventEmitter resolve the error?

cgilboy commented 8 years ago

Yep- Adding either of the above lines resolves the issue.

wmcmahan commented 8 years ago

Cool, I should probably add this to the readme.

cgilboy commented 8 years ago

Thanks!

rajatj45 commented 5 years ago

Error: react native module rcteventemitter is not a registered callable module(calling receive touches) i have the above error could you please tell

var {NativeAppEventEmitter} = require('react-native');

where to add this line?