mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 06:22:39 +08:00
Introducing view property annotation.
Differential Revision: D2475680 committer: Service User <svcscm@fb.com>
This commit is contained in:
committed by
facebook-github-bot-9
parent
6c3fb77f30
commit
5623c831b3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user