File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 6161 }
6262 },
6363 "dependencies" : {
64+ "hoist-non-react-statics" : " ^3.0.1" ,
6465 "mitt" : " ^1.1.3"
6566 }
6667}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
55import { View } from 'react-native' ;
66
77import mitt from 'mitt' ;
8+ import hoistStatics from 'hoist-non-react-statics'
89
910import CopilotModal from '../components/CopilotModal' ;
1011import { 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
204205export default copilot ;
Original file line number Diff line number Diff line change 28592859 version "4.2.1"
28602860 resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
28612861
2862+ hoist-non-react-statics@^3.0.1 :
2863+ version "3.0.1"
2864+ resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.0.1.tgz#fba3e7df0210eb9447757ca1a7cb607162f0a364"
2865+ dependencies :
2866+ react-is "^16.3.2"
2867+
28622868home-or-tmp@^2.0.0 :
28632869 version "2.0.0"
28642870 resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8"
You can’t perform that action at this time.
0 commit comments