File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 Platform ,
1010} from 'react-native' ;
1111
12- import ImageView from './ImageView' ;
13- // import ImageView from 'react-native-image-view';
12+ // import ImageView from '../src /ImageView';
13+ import ImageView from 'react-native-image-view' ;
1414
1515const { width} = Dimensions . get ( 'window' ) ;
1616
Original file line number Diff line number Diff line change 1616 },
1717 "ios" : {
1818 "supportsTablet" : true
19+ },
20+ "packagerOpts" : {
21+ "projectRoots" : " " ,
22+ "config" : " rn-cli.config.js"
1923 }
2024 }
2125}
Original file line number Diff line number Diff line change 55 "expo" : " ^25.0.0" ,
66 "react" : " 16.0.0" ,
77 "react-native" : " https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz" ,
8- "react-native-image-view" : " 2.0.12 "
8+ "react-native-image-view" : " 2.1.0 "
99 },
1010 "devDependencies" : {
1111 "babel-eslint" : " 8.2.3" ,
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' ) ;
2+
3+ const config = {
4+ extraNodeModules : {
5+ 'react-native' : path . resolve ( __dirname , 'node_modules/react-native' ) ,
6+ react : path . resolve ( __dirname , 'node_modules/react' ) ,
7+ } ,
8+ getProjectRoots ( ) {
9+ return [
10+ // Keep your project directory.
11+ path . resolve ( __dirname ) ,
12+ path . resolve ( __dirname , '..' ) , // path to the external module
13+ ] ;
14+ } ,
15+ } ;
16+ module . exports = config ;
You can’t perform that action at this time.
0 commit comments