mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix lint warnings in Drawer classes (#37024)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37024 Fix lint warnings in Drawer classes changelog: [internal] internal Reviewed By: christophpurrer Differential Revision: D45123914 fbshipit-source-id: 46d2f6326b4231dcefb42f286437daec53c51fae
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f3abf4243c
commit
43c202fa95
+6
-4
@@ -58,7 +58,8 @@ public class ReactDrawerLayoutManager extends ViewGroupManager<ReactDrawerLayout
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addEventEmitters(ThemedReactContext reactContext, ReactDrawerLayout view) {
|
||||
protected void addEventEmitters(
|
||||
@NonNull ThemedReactContext reactContext, ReactDrawerLayout view) {
|
||||
EventDispatcher eventDispatcher =
|
||||
UIManagerHelper.getEventDispatcherForReactTag(reactContext, view.getId());
|
||||
if (eventDispatcher == null) {
|
||||
@@ -188,7 +189,8 @@ public class ReactDrawerLayoutManager extends ViewGroupManager<ReactDrawerLayout
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receiveCommand(ReactDrawerLayout root, int commandId, @Nullable ReadableArray args) {
|
||||
public void receiveCommand(
|
||||
@NonNull ReactDrawerLayout root, int commandId, @Nullable ReadableArray args) {
|
||||
switch (commandId) {
|
||||
case OPEN_DRAWER:
|
||||
root.openDrawer();
|
||||
@@ -213,13 +215,13 @@ public class ReactDrawerLayoutManager extends ViewGroupManager<ReactDrawerLayout
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable Map getExportedViewConstants() {
|
||||
public @Nullable Map<String, Object> getExportedViewConstants() {
|
||||
return MapBuilder.of(
|
||||
"DrawerPosition", MapBuilder.of("Left", Gravity.START, "Right", Gravity.END));
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable Map getExportedCustomDirectEventTypeConstants() {
|
||||
public @Nullable Map<String, Object> getExportedCustomDirectEventTypeConstants() {
|
||||
@Nullable
|
||||
Map<String, Object> baseEventTypeConstants = super.getExportedCustomDirectEventTypeConstants();
|
||||
Map<String, Object> eventTypeConstants =
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@
|
||||
package com.facebook.react.views.textinput;
|
||||
|
||||
public interface ContentSizeWatcher {
|
||||
public void onLayout();
|
||||
void onLayout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user