Skip to content

Commit

Permalink
feat: use rn 0.70.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Nov 14, 2022
1 parent 34035c0 commit 2a33d44
Show file tree
Hide file tree
Showing 6 changed files with 4,756 additions and 3,616 deletions.
1 change: 1 addition & 0 deletions packages/taro-ui-demo-rn/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@tarojs/rn-supporter/entry-file.js'
7 changes: 5 additions & 2 deletions packages/taro-ui-demo-rn/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { mergeConfig } = require('metro-config')
const { getMetroConfig } = require('@tarojs/rn-supporter')
const fs = require('fs')
const path = require('path')
const exclusionList = require('metro-config/src/defaults/exclusionList')
Expand All @@ -13,6 +15,7 @@ const modules = [
'react-native',
'@tarojs/components-rn',
'@tarojs/taro-rn',
'@tarojs/runtime-rn',
'react-native-svg',
'react-native-root-siblings',
...Object.keys({
Expand All @@ -21,7 +24,7 @@ const modules = [
})
]

module.exports = {
module.exports = mergeConfig({
// maxWorkers: 1,
// resetCache: true,
watchFolders: [taroUI, __dirname],
Expand All @@ -34,4 +37,4 @@ module.exports = {
new RegExp(`^${escape(path.join(taroUI, 'node_modules'))}\\/.*$`)
])
}
}
}, getMetroConfig())
46 changes: 18 additions & 28 deletions packages/taro-ui-demo-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,47 +42,37 @@
],
"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.4.13",
"@tarojs/plugin-framework-react": "3.4.13",
"@tarojs/react": "3.4.13",
"@tarojs/rn-runner": "3.4.13",
"@tarojs/runtime": "3.4.13",
"@tarojs/taro": "3.4.13",
"@tarojs/taro-rn": "3.4.13",
"react": "^17.0.2",
"react-dom": "^16.13.0",
"react-native": "~0.68.1",
"@tarojs/components": "3.5.7-alpha.11",
"@tarojs/plugin-framework-react": "3.5.7-alpha.11",
"@tarojs/react": "3.5.7-alpha.11",
"@tarojs/rn-runner": "3.5.7-alpha.11",
"@tarojs/runtime": "3.5.7-alpha.11",
"@tarojs/taro": "3.5.7-alpha.11",
"@tarojs/taro-rn": "3.5.7-alpha.11",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-native": "~0.70.5",
"react-native-modal": "^13.0.0",
"taro-ui": "3.1.0-beta.4"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@react-native-picker/picker": "^1.15.0",
"@tarojs/cli": "3.4.13",
"@tarojs/mini-runner": "3.4.13",
"@tarojs/webpack-runner": "3.4.13",
"@tarojs/cli": "3.5.7-alpha.11",
"@tarojs/mini-runner": "3.5.7-alpha.11",
"@tarojs/webpack-runner": "3.5.7-alpha.11",
"@types/react": "^16.0.0",
"@types/webpack-env": "^1.13.6",
"babel-plugin-transform-imports": "^2.0.0",
"babel-preset-taro": "3.4.13",
"babel-preset-taro": "3.5.7-alpha.11",
"escape-string-regexp": "^4.0.0",
"eslint-config-taro": "3.4.13",
"expo-constants": "13.1.1",
"expo-modules-core": "0.9.2",
"eslint-config-taro": "3.5.7-alpha.11",
"expo": "~47.0.3",
"patch-package": "^6.4.7",
"react-native-svg": "13.4.0",
"typescript": "^3.8.3"
},
"resolutions": {
"sass": "1.37.5",
"expo-camera": "12.3.0",
"expo-barcode-scanner": "11.3.0",
"expo-image-picker": "13.1.1",
"expo-brightness": "10.2.0",
"expo-file-system": "14.0.0",
"expo-keep-awake": "10.1.1",
"expo-permissions": "13.2.0",
"expo-sensors": "11.3.0",
"expo-asset": "8.5.0",
"expo-av": "11.2.3"
"sass": "1.37.5"
}
}
Loading

0 comments on commit 2a33d44

Please sign in to comment.