make ViewManager extend BaseJavaModule

Reviewed By: achen1

Differential Revision: D3950323

fbshipit-source-id: 91fda89a9a457e0e5b6952b744eeba5e31c46a9a
This commit is contained in:
Aaron Chiu 2016-10-06 15:50:30 -07:00 committed by Facebook Github Bot
parent 9311c4e6f5
commit 8708c8bb82
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import java.util.Map;
import android.view.View;
import com.facebook.react.bridge.BaseJavaModule;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.touch.JSResponderHandler;
import com.facebook.react.touch.ReactInterceptingViewGroup;
@ -28,7 +29,8 @@ import com.facebook.react.uimanager.annotations.ReactPropertyHolder;
* for the corresponding native view.
*/
@ReactPropertyHolder
public abstract class ViewManager<T extends View, C extends ReactShadowNode> {
public abstract class ViewManager<T extends View, C extends ReactShadowNode>
extends BaseJavaModule {
public final void updateProperties(T viewToUpdate, ReactStylesDiffMap props) {
ViewManagerPropertyUpdater.updateProps(this, viewToUpdate, props);