Skip to content

Commit

Permalink
Update example to use last version
Browse files Browse the repository at this point in the history
  • Loading branch information
antonKalinin committed Nov 19, 2018
1 parent 364576c commit bd5ee9e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
Platform,
} from 'react-native';

import ImageView from './ImageView';
// import ImageView from 'react-native-image-view';
// import ImageView from '../src/ImageView';
import ImageView from 'react-native-image-view';

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

Expand Down
4 changes: 4 additions & 0 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
},
"ios": {
"supportsTablet": true
},
"packagerOpts": {
"projectRoots": "",
"config": "rn-cli.config.js"
}
}
}
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"expo": "^25.0.0",
"react": "16.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-native-image-view": "2.0.12"
"react-native-image-view": "2.1.0"
},
"devDependencies": {
"babel-eslint": "8.2.3",
Expand Down
16 changes: 16 additions & 0 deletions example/rn-cli.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const path = require('path');

const config = {
extraNodeModules: {
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
react: path.resolve(__dirname, 'node_modules/react'),
},
getProjectRoots() {
return [
// Keep your project directory.
path.resolve(__dirname),
path.resolve(__dirname, '..'), // path to the external module
];
},
};
module.exports = config;

0 comments on commit bd5ee9e

Please sign in to comment.