[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:
TikiTDO
2020-10-13 16:19:16 -04:00
committed by Nicolas Gallagher
parent 09c2f1975b
commit 3118315140

View File

@@ -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}
/>
);
}