mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08: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
@@ -165,11 +165,6 @@ function createAnimatedComponent(Component: any, defaultProps: any): any {
|
||||
{...defaultProps}
|
||||
{...props}
|
||||
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