Filter out onComponentRef to avoid passing it to the fallback View component

This commit is contained in:
Krzysztof Magiera
2018-09-11 14:43:09 +02:00
parent 4e017e4fa4
commit 3feb754553

View File

@@ -42,7 +42,7 @@ export class Screen extends React.Component {
// https://github.com/react-navigation/react-navigation/issues/4886
/* eslint-disable no-unused-vars */
const { active, ...props } = this.props;
const { active, onComponentRef, ...props } = this.props;
return <Animated.View {...props} ref={this.setRef} />;
} else {