mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-27 21:08:02 +08:00
Filter out onComponentRef to avoid passing it to the fallback View component
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user