We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f64a0 commit d87a289Copy full SHA for d87a289
src/hocs/copilot.js
@@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
5
import { View } from 'react-native';
6
7
import mitt from 'mitt';
8
+import hoistStatics from 'hoist-non-react-statics'
9
10
import CopilotModal from '../components/CopilotModal';
11
import { OFFSET_WIDTH } from '../components/style';
@@ -198,7 +199,7 @@ const copilot = ({
198
199
_copilot: PropTypes.object.isRequired,
200
};
201
- return Copilot;
202
+ return hoistStatics(Copilot, WrappedComponent);
203
204
205
export default copilot;
0 commit comments