Introducing view property annotation.

Differential Revision: D2475680

committer: Service User <svcscm@fb.com>
This commit is contained in:
Krzysztof Magiera
2015-09-24 04:30:29 -07:00
committed by facebook-github-bot-9
parent 6c3fb77f30
commit 5623c831b3
8 changed files with 634 additions and 19 deletions

View File

@@ -93,7 +93,7 @@ import com.facebook.react.uimanager.events.EventDispatcher;
throw new IllegalViewOperationException("Trying to update view with tag " + tag
+ " which doesn't exist");
}
viewManager.updateView(viewToUpdate, props);
viewManager.updateProperties(viewToUpdate, props);
}
public void updateViewExtraData(int tag, Object extraData) {
@@ -179,7 +179,7 @@ import com.facebook.react.uimanager.events.EventDispatcher;
// creating another (potentially much more expensive) mapping from view to React tag
view.setId(tag);
if (initialProps != null) {
viewManager.updateView(view, initialProps);
viewManager.updateProperties(view, initialProps);
}
}