mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 09:12:05 +08:00
Use requireNativeComponent in View.js.
Summary: public In a previous diff I've removed a need for using View attributes in requireNativeComponent. Thanks to that we can now use requireNativeComponent in View module. In a follow up diff I'll be getting rid of ReactNativeViewAttributes. Reviewed By: sahrens Differential Revision: D2676088 fb-gh-sync-id: d5d6e50f4629bd7982b90f3496e1fd22078e96a8
This commit is contained in:
committed by
facebook-github-bot-0
parent
0d17d6a8c0
commit
7cd7591f04
@@ -122,6 +122,12 @@ public class ReactViewManager extends ViewGroupManager<ReactViewGroup> {
|
||||
color == null ? CSSConstants.UNDEFINED : (float) color);
|
||||
}
|
||||
|
||||
@ReactProp(name = ViewProps.COLLAPSABLE)
|
||||
public void setCollapsable(ReactViewGroup view, boolean collapsable) {
|
||||
// no-op: it's here only so that "collapsable" property is exported to JS. The value is actually
|
||||
// handled in NativeViewHierarchyOptimizer
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return REACT_CLASS;
|
||||
|
||||
Reference in New Issue
Block a user