make ViewManager extend BaseJavaModule
Reviewed By: achen1 Differential Revision: D3950323 fbshipit-source-id: 91fda89a9a457e0e5b6952b744eeba5e31c46a9a
This commit is contained in:
parent
9311c4e6f5
commit
8708c8bb82
|
@ -15,6 +15,7 @@ import java.util.Map;
|
||||||
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
import com.facebook.react.bridge.BaseJavaModule;
|
||||||
import com.facebook.react.bridge.ReadableArray;
|
import com.facebook.react.bridge.ReadableArray;
|
||||||
import com.facebook.react.touch.JSResponderHandler;
|
import com.facebook.react.touch.JSResponderHandler;
|
||||||
import com.facebook.react.touch.ReactInterceptingViewGroup;
|
import com.facebook.react.touch.ReactInterceptingViewGroup;
|
||||||
|
@ -28,7 +29,8 @@ import com.facebook.react.uimanager.annotations.ReactPropertyHolder;
|
||||||
* for the corresponding native view.
|
* for the corresponding native view.
|
||||||
*/
|
*/
|
||||||
@ReactPropertyHolder
|
@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) {
|
public final void updateProperties(T viewToUpdate, ReactStylesDiffMap props) {
|
||||||
ViewManagerPropertyUpdater.updateProps(this, viewToUpdate, props);
|
ViewManagerPropertyUpdater.updateProps(this, viewToUpdate, props);
|
||||||
|
|
Loading…
Reference in New Issue