Skip to content

Commit d87a289

Browse files
committed
fix(copilot): hoist static props
1 parent 68f64a0 commit d87a289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hocs/copilot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
55
import { View } from 'react-native';
66

77
import mitt from 'mitt';
8+
import hoistStatics from 'hoist-non-react-statics'
89

910
import CopilotModal from '../components/CopilotModal';
1011
import { OFFSET_WIDTH } from '../components/style';
@@ -198,7 +199,7 @@ const copilot = ({
198199
_copilot: PropTypes.object.isRequired,
199200
};
200201

201-
return Copilot;
202+
return hoistStatics(Copilot, WrappedComponent);
202203
};
203204

204205
export default copilot;

0 commit comments

Comments
 (0)