Skip to content

Commit

Permalink
create ART*ViewManager classes
Browse files Browse the repository at this point in the history
Reviewed By: achen1

Differential Revision: D4050949

fbshipit-source-id: 214838c1c1cf6c66170b606ac7055e1e8790b6c9
  • Loading branch information
aaronechiu authored and facebook-github-bot committed Dec 18, 2016
1 parent 6ca6b49 commit 1052d29
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2004-present Facebook. All Rights Reserved.

package com.facebook.react.views.art;

import com.facebook.react.module.annotations.ReactModule;

/**
* ViewManager for shadowed ART group views.
*/
@ReactModule(name = ARTRenderableViewManager.CLASS_GROUP)
public class ARTGroupViewManager extends ARTRenderableViewManager {

/* package */ ARTGroupViewManager() {
super(CLASS_GROUP);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import android.view.View;

import com.facebook.react.uimanager.ReactStylesDiffMap;
import com.facebook.react.uimanager.ReactShadowNode;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.ViewManager;
Expand All @@ -30,18 +29,18 @@ public class ARTRenderableViewManager extends ViewManager<View, ReactShadowNode>
private final String mClassName;

public static ARTRenderableViewManager createARTGroupViewManager() {
return new ARTRenderableViewManager(CLASS_GROUP);
return new ARTGroupViewManager();
}

public static ARTRenderableViewManager createARTShapeViewManager() {
return new ARTRenderableViewManager(CLASS_SHAPE);
return new ARTShapeViewManager();
}

public static ARTRenderableViewManager createARTTextViewManager() {
return new ARTRenderableViewManager(CLASS_TEXT);
return new ARTTextViewManager();
}

private ARTRenderableViewManager(String className) {
/* package */ ARTRenderableViewManager(String className) {
mClassName = className;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2004-present Facebook. All Rights Reserved.

package com.facebook.react.views.art;

import com.facebook.react.module.annotations.ReactModule;

/**
* ViewManager for shadowed ART shape views.
*/
@ReactModule(name = ARTRenderableViewManager.CLASS_SHAPE)
public class ARTShapeViewManager extends ARTRenderableViewManager {

/* package */ ARTShapeViewManager() {
super(CLASS_SHAPE);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2004-present Facebook. All Rights Reserved.

package com.facebook.react.views.art;

import com.facebook.react.module.annotations.ReactModule;

/**
* ViewManager for shadowed ART text views.
*/
@ReactModule(name = ARTRenderableViewManager.CLASS_TEXT)
public class ARTTextViewManager extends ARTRenderableViewManager {

/* package */ ARTTextViewManager() {
super(CLASS_TEXT);
}
}

0 comments on commit 1052d29

Please sign in to comment.