mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
aa860fb5df
commit
b7782fb57c
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user