Files
react-native/packages/react-native-codegen/buck_tests/java/NoPropsNoEventsNativeComponentViewManager.java
T
Rick Hanlon 32b812c05c Add Java buck tests
Summary: This diff adds some basic tests that ensure all of the e2e test components can compile with the interface is implemented (we also have these tests for cxx)

Reviewed By: JoshuaGross, mdvacca

Differential Revision: D16378756

fbshipit-source-id: d0c6dc976c74f6a388068e66b9a2135bc4ce4652
2019-07-19 15:04:06 -07:00

27 lines
815 B
Java

package com.facebook.react.uimanager;
import android.view.ViewGroup;
import com.facebook.react.viewmanagers.NoPropsNoEventsNativeComponentDelegate;
import com.facebook.react.viewmanagers.NoPropsNoEventsNativeComponentInterface;
public class NoPropsNoEventsNativeComponentViewManager extends SimpleViewManager<ViewGroup>
implements NoPropsNoEventsNativeComponentInterface<ViewGroup> {
public static final String REACT_CLASS = "NoPropsNoEventsNativeComponentView";
@Override
public String getName() {
return REACT_CLASS;
}
private void test() {
NoPropsNoEventsNativeComponentDelegate delegate =
new NoPropsNoEventsNativeComponentDelegate<ViewGroup>();
}
@Override
public ViewGroup createViewInstance(ThemedReactContext context) {
throw new IllegalStateException();
}
}