mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 22:35:29 +08:00
Apply FlatShadowNode padding to View
Summary: Any padding that a FlatShadowNode is assigned by React runtime should be translated to a backing Android View so it looks correct and lays out children accordingly. Reviewed By: sriramramani Differential Revision: D2756562
This commit is contained in:
committed by
Ahmed El-Helw
parent
dbe9cc333c
commit
312f04d2b7
@@ -113,6 +113,15 @@ import com.facebook.react.uimanager.ViewManagerRegistry;
|
||||
}
|
||||
}
|
||||
|
||||
/* package */ void setPadding(
|
||||
int reactTag,
|
||||
int paddingLeft,
|
||||
int paddingTop,
|
||||
int paddingRight,
|
||||
int paddingBottom) {
|
||||
resolveView(reactTag).setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);
|
||||
}
|
||||
|
||||
/* package */ void detachAllChildrenFromViews(int[] viewsToDetachAllChildrenFrom) {
|
||||
for (int viewTag : viewsToDetachAllChildrenFrom) {
|
||||
View view = resolveView(viewTag);
|
||||
|
||||
Reference in New Issue
Block a user