mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-06 03:45:18 +00:00
[fix] Remove 'collapsable' prop from createAnimatedComponent
This is an Android-only prop that has no platform guard in React Native. The web has a native 'collapsable' prop that React DOM complains about when it is not a string value. Close #1767
This commit is contained in:
committed by
Nicolas Gallagher
parent
09c2f1975b
commit
3118315140
-5
@@ -165,11 +165,6 @@ function createAnimatedComponent(Component: any, defaultProps: any): any {
|
|||||||
{...defaultProps}
|
{...defaultProps}
|
||||||
{...props}
|
{...props}
|
||||||
ref={this._setComponentRef}
|
ref={this._setComponentRef}
|
||||||
// The native driver updates views directly through the UI thread so we
|
|
||||||
// have to make sure the view doesn't get optimized away because it cannot
|
|
||||||
// go through the NativeViewHierarchyManager since it operates on the shadow
|
|
||||||
// thread.
|
|
||||||
collapsable={false}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user