Skip to content

Commit

Permalink
feat: rn 0.71
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Apr 20, 2023
1 parent 7f9c610 commit dc77a8a
Show file tree
Hide file tree
Showing 7 changed files with 8,992 additions and 9,448 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'
34 changes: 20 additions & 14 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,17 +24,20 @@ const modules = [
})
]

module.exports = {
// maxWorkers: 1,
// resetCache: true,
watchFolders: [taroUI, __dirname],
resolver: {
extraNodeModules: modules.reduce((acc, name) => {
acc[name] = path.join(__dirname, 'node_modules', name)
return acc
}, {}),
blockList: exclusionList([
new RegExp(`^${escape(path.join(taroUI, 'node_modules'))}\\/.*$`)
])
}
}
module.exports = mergeConfig(
{
// maxWorkers: 1,
// resetCache: true,
watchFolders: [taroUI, __dirname],
resolver: {
extraNodeModules: modules.reduce((acc, name) => {
acc[name] = path.join(__dirname, 'node_modules', name)
return acc
}, {}),
blockList: exclusionList([
new RegExp(`^${escape(path.join(taroUI, 'node_modules'))}\\/.*$`)
])
}
},
getMetroConfig()
)
48 changes: 19 additions & 29 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.6.5-canary.1",
"@tarojs/plugin-framework-react": "3.6.5-canary.1",
"@tarojs/react": "3.6.5-canary.1",
"@tarojs/rn-runner": "3.6.5-canary.1",
"@tarojs/runtime": "3.6.5-canary.1",
"@tarojs/taro": "3.6.5-canary.1",
"@tarojs/taro-rn": "3.6.5-canary.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "^0.71.6",
"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",
"@types/react": "^16.0.0",
"@tarojs/cli": "3.6.5-canary.1",
"@tarojs/mini-runner": "3.6.5-canary.1",
"@tarojs/webpack-runner": "3.6.5-canary.1",
"@types/react": "^18.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.6.5-canary.1",
"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.6.5-canary.1",
"expo": "~48.0.0",
"patch-package": "^6.4.7",
"react-native-svg": "13.8.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 dc77a8a

Please sign in to comment.