mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 12:55:21 +08:00
Update react-navigation/native dependency (#41)
* Update RNGH and remove rn-cli.config.js from example * Update example
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
{
|
||||
"presets": [
|
||||
"expo"
|
||||
],
|
||||
"plugins": [
|
||||
["module-resolver", {
|
||||
"alias": {
|
||||
"react-navigation-drawer": "../src"
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,15 +3,8 @@
|
||||
"name": "React Navigation Drawer Example",
|
||||
"description": "Demonstrates the various capabilities of react-navigation-drawer",
|
||||
"slug": "react-navigation-drawer-demo",
|
||||
"sdkVersion": "30.0.0",
|
||||
"sdkVersion": "32.0.0",
|
||||
"version": "1.0.0",
|
||||
"primaryColor": "#2196f3",
|
||||
"packagerOpts": {
|
||||
"assetExts": [
|
||||
"ttf"
|
||||
],
|
||||
"config": "./rn-cli.config.js",
|
||||
"projectRoots": ""
|
||||
}
|
||||
"primaryColor": "#2196f3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,24 +8,24 @@
|
||||
"android": "expo start --android",
|
||||
"ios": "expo start --ios",
|
||||
"eject": "expo eject",
|
||||
"test": "node ./node_modules/jest/bin/jest.js --watchAll"
|
||||
"test": "node ./node_modules/jest/bin/jest.js --watchAll",
|
||||
"postinstall": "rm -rf node_modules/react-navigation-drawer/{.git,node_modules,example}"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "16.3.1",
|
||||
"react-native": "~0.55.0",
|
||||
"react": "16.5.0",
|
||||
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
|
||||
"react-native-paper": "^2.2.0",
|
||||
"react-navigation-stack": "^1.0.0",
|
||||
"react-navigation-drawer": "../",
|
||||
"@react-navigation/core": "^3.0.0",
|
||||
"@react-navigation/native": "^3.0.0",
|
||||
"expo": "~30.0.0",
|
||||
"@react-navigation/native": "^3.1.1",
|
||||
"expo": "32.0.0",
|
||||
"hoist-non-react-statics": "^2.5.0",
|
||||
"prop-types": "^15.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-module-resolver": "^3.0.0",
|
||||
"babel-preset-expo": "^4.0.0",
|
||||
"glob-to-regexp": "^0.3.0",
|
||||
"react-native-scripts": "1.8.1"
|
||||
"glob-to-regexp": "^0.3.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"**/prop-types": "15.6.0",
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
/* eslint-disable import/no-commonjs */
|
||||
|
||||
const path = require('path');
|
||||
const glob = require('glob-to-regexp');
|
||||
const blacklist = require('metro/src/blacklist');
|
||||
const pak = require('../package.json');
|
||||
|
||||
const dependencies = Object.keys(pak.dependencies);
|
||||
const peerDependencies = Object.keys(pak.peerDependencies);
|
||||
|
||||
module.exports = {
|
||||
getProjectRoots() {
|
||||
return [__dirname, path.resolve(__dirname, '..')];
|
||||
},
|
||||
getProvidesModuleNodeModules() {
|
||||
return [...dependencies, ...peerDependencies];
|
||||
},
|
||||
getBlacklistRE() {
|
||||
return blacklist([glob(`${path.resolve(__dirname, '..')}/node_modules/*`)]);
|
||||
},
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user