Skip to content

Commit

Permalink
[Discord] Moving registry of RCTEventEmitter to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Flewp authored and joemun committed Dec 2, 2024
1 parent 9b863e4 commit d95d88a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public UIManagerModule(
minTimeLeftInFrameForNonBatchedOperationMs);

reactContext.addLifecycleEventListener(this);
mEventDispatcher.registerEventEmitter(
DEFAULT, getReactApplicationContext().getJSModule(RCTEventEmitter.class));
}

/**
Expand Down Expand Up @@ -175,8 +177,6 @@ public Map<String, Object> getConstants() {
public void initialize() {
getReactApplicationContext().registerComponentCallbacks(mMemoryTrimCallback);
getReactApplicationContext().registerComponentCallbacks(mViewManagerRegistry);
mEventDispatcher.registerEventEmitter(
DEFAULT, getReactApplicationContext().getJSModule(RCTEventEmitter.class));
}

@Override
Expand Down

0 comments on commit d95d88a

Please sign in to comment.