mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Expose collapsable as React Prop in LayoutShadowNode
Summary: This diff exposes the collapsable prop as part of LayoutShadowNode, fixing the bug of the collapsable prop being filtered by JS in Fabric Reviewed By: shergin Differential Revision: D14594522 fbshipit-source-id: a892ba8228e76f11232acc6fe5c8d75e991d8fc6
This commit is contained in:
committed by
Facebook Github Bot
parent
6345fcf12b
commit
58c16e63a4
@@ -118,6 +118,12 @@ public class LayoutShadowNode extends ReactShadowNodeImpl {
|
||||
minWidth.recycle();
|
||||
}
|
||||
|
||||
boolean mCollapsable;
|
||||
@ReactProp(name = "collapsable")
|
||||
public void setCollapsable(boolean collapsable) {
|
||||
mCollapsable = collapsable;
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.MAX_WIDTH)
|
||||
public void setMaxWidth(Dynamic maxWidth) {
|
||||
if (isVirtual()) {
|
||||
|
||||
Reference in New Issue
Block a user