mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +08:00
Less Catalyst, more React
Summary: Catalyst is the old project name. Rename a few files. public Reviewed By: bestander Differential Revision: D2859553 fb-gh-sync-id: 65a87cc7bcc22f20326971becec02aa1c573e5b9
This commit is contained in:
committed by
facebook-github-bot-9
parent
481f560f64
commit
c95d74ac09
@@ -17,11 +17,11 @@ public class ViewManagerPropertyUpdater {
|
||||
}
|
||||
|
||||
public interface ViewManagerSetter<T extends ViewManager, V extends View> extends Settable {
|
||||
void setProperty(T manager, V view, String name, CatalystStylesDiffMap props);
|
||||
void setProperty(T manager, V view, String name, ReactStylesDiffMap props);
|
||||
}
|
||||
|
||||
public interface ShadowNodeSetter<T extends ReactShadowNode> extends Settable {
|
||||
void setProperty(T node, String name, CatalystStylesDiffMap props);
|
||||
void setProperty(T node, String name, ReactStylesDiffMap props);
|
||||
}
|
||||
|
||||
private static final String TAG = "ViewManagerPropertyUpdater";
|
||||
@@ -33,7 +33,7 @@ public class ViewManagerPropertyUpdater {
|
||||
public static <T extends ViewManager, V extends View> void updateProps(
|
||||
T manager,
|
||||
V v,
|
||||
CatalystStylesDiffMap props) {
|
||||
ReactStylesDiffMap props) {
|
||||
ViewManagerSetter<T, V> setter = findManagerSetter(manager.getClass());
|
||||
ReadableMap propMap = props.mBackingMap;
|
||||
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
|
||||
@@ -43,7 +43,7 @@ public class ViewManagerPropertyUpdater {
|
||||
}
|
||||
}
|
||||
|
||||
public static <T extends ReactShadowNode> void updateProps(T node, CatalystStylesDiffMap props) {
|
||||
public static <T extends ReactShadowNode> void updateProps(T node, ReactStylesDiffMap props) {
|
||||
ShadowNodeSetter<T> setter = findNodeSetter(node.getClass());
|
||||
ReadableMap propMap = props.mBackingMap;
|
||||
ReadableMapKeySetIterator iterator = propMap.keySetIterator();
|
||||
@@ -117,7 +117,7 @@ public class ViewManagerPropertyUpdater {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProperty(T manager, V v, String name, CatalystStylesDiffMap props) {
|
||||
public void setProperty(T manager, V v, String name, ReactStylesDiffMap props) {
|
||||
ViewManagersPropertyCache.PropSetter setter = mPropSetters.get(name);
|
||||
if (setter != null) {
|
||||
setter.updateViewProp(manager, v, props);
|
||||
@@ -144,7 +144,7 @@ public class ViewManagerPropertyUpdater {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProperty(ReactShadowNode node, String name, CatalystStylesDiffMap props) {
|
||||
public void setProperty(ReactShadowNode node, String name, ReactStylesDiffMap props) {
|
||||
ViewManagersPropertyCache.PropSetter setter = mPropSetters.get(name);
|
||||
if (setter != null) {
|
||||
setter.updateShadowNodeProp(node, props);
|
||||
|
||||
Reference in New Issue
Block a user