codemotionapps/react-native-dark-mode

eventEmitter constantly called on android

Closed this issue · 5 comments

Hi!
With the release 0.2.0 the eventEmitter is constantly fired on Android (Tested on Android 10 and 8.1)
It was not the case on the precedent release (<0.2).
Thank you !

0.2.1-rc.0 released

This was fixed for Android only, it happens on iOS as well,
using

"react-native-dark-mode": "0.2.1",
"react-native": "0.61.4"

Screen Shot 2019-11-15 at 17 06 25

I'm also having this issue on iOS and I'm not calling eventEmitter.off because I haven't manually created one. I'm just using the "high level APIs". @DimitarNestorov please advise.

@matheusbaumgart Did you wrap your application with <DarkModeProvider>?