Skip to content

Commit bd5ee9e

Browse files
committed
Update example to use last version
1 parent 364576c commit bd5ee9e

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

example/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
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

1515
const {width} = Dimensions.get('window');
1616

example/app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
},
1717
"ios": {
1818
"supportsTablet": true
19+
},
20+
"packagerOpts": {
21+
"projectRoots": "",
22+
"config": "rn-cli.config.js"
1923
}
2024
}
2125
}

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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",

example/rn-cli.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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;

0 commit comments

Comments
 (0)