Add codegen to AndroidDrawer

Summary:
Using Ricky's last changes I managed to subscribe for both new and old event name.

Fixed event to proper one for codegen in native code.

Reviewed By: TheSavior

Differential Revision: D16065660

fbshipit-source-id: b5d3762d673a34bbdf5a8e60ff4d51617c8adb81
This commit is contained in:
Michał Osadnik
2019-07-03 02:29:47 -07:00
committed by Facebook Github Bot
parent aa860fb5df
commit b7782fb57c
5 changed files with 33 additions and 46 deletions
@@ -12,7 +12,7 @@ import com.facebook.react.uimanager.events.RCTEventEmitter;
public class DrawerClosedEvent extends Event<DrawerClosedEvent> {
public static final String EVENT_NAME = "topDrawerClosed";
public static final String EVENT_NAME = "topDrawerClose";
public DrawerClosedEvent(int viewId) {
super(viewId);
@@ -12,7 +12,7 @@ import com.facebook.react.uimanager.events.RCTEventEmitter;
public class DrawerOpenedEvent extends Event<DrawerOpenedEvent> {
public static final String EVENT_NAME = "topDrawerOpened";
public static final String EVENT_NAME = "topDrawerOpen";
public DrawerOpenedEvent(int viewId) {
super(viewId);