Skip to content

Commit

Permalink
chore: react native 升级到 0.66.0 版本, 修复测试报错
Browse files Browse the repository at this point in the history
chore: react native 升级到 0.66.0 版本
  • Loading branch information
shinken008 committed Oct 9, 2021
1 parent 0d4a6b2 commit dfe0431
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@

exports[`VirtualList VirtualList render 1`] = `
<FlatList
disableVirtualization={false}
enableBackToTop={false}
horizontal={false}
initialNumToRender={10}
keyExtractor={[Function]}
lowerThreshold={50}
maxToRenderPerBatch={10}
numColumns={1}
onEndReachedThreshold={2}
onScroll={[Function]}
onScrollBeginDrag={[Function]}
removeClippedSubviews={false}
renderItem={[Function]}
scrollEventThrottle={50}
updateCellsBatchingPeriod={50}
upperThreshold={50}
windowSize={1}
/>
Expand Down
5 changes: 2 additions & 3 deletions packages/taro-components-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"expo-constants": "~9.2.0",
"expo-file-system": "~11.1.3",
"jest-expo": "^39.0.0",
"metro-react-native-babel-preset": "^0.64.0",
"metro-react-native-babel-preset": "^0.66.2",
"pre-commit": "^1.2.2",
"react-native": "^0.66.0",
"react-test-renderer": "^17.0.1",
Expand All @@ -68,6 +68,5 @@
"resolutions": {
"@types/react": "17.0.11",
"@types/node": "^14.14.41"
},
"gitHead": "f96fa4b6b01b98e0e39e59e02e2ccec9d67f8d39"
}
}
49 changes: 2 additions & 47 deletions packages/taro-components-rn/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
semver "^5.4.1"
source-map "^0.5.0"

"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.7.5":
"@babel/core@^7.1.0", "@babel/core@^7.7.5":
version "7.14.6"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.6.tgz#e0814ec1a950032ff16c13a2721de39a8416fcab"
integrity sha512-gJnOEWSqTk96qG5BoIrl5bVtc23DCycmIePPYnamY9RboYdI4nFy5vAQMSl81O5K/W0sLDWfGysnOECC+KUUCA==
Expand Down Expand Up @@ -5789,7 +5789,7 @@ [email protected]:
dependencies:
uglify-es "^3.1.9"

[email protected]:
[email protected], metro-react-native-babel-preset@^0.66.2:
version "0.66.2"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.66.2.tgz#fddebcf413ad4ea617d4f47f7c1da401052de734"
integrity sha512-H/nLBAz0MgfDloSe1FjyH4EnbokHFdncyERvLPXDACY3ROVRCeUyFNo70ywRGXW2NMbrV4H7KUyU4zkfWhC2HQ==
Expand Down Expand Up @@ -5835,51 +5835,6 @@ [email protected]:
"@babel/template" "^7.0.0"
react-refresh "^0.4.0"

metro-react-native-babel-preset@^0.64.0:
version "0.64.0"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.64.0.tgz#76861408681dfda3c1d962eb31a8994918c976f8"
integrity sha512-HcZ0RWQRuJfpPiaHyFQJzcym+/dDIVUPwUAXWoub/C4GkGu+mPjp8vqK6g0FxokCnnI2TK0gZTza2IDfiNNscQ==
dependencies:
"@babel/core" "^7.0.0"
"@babel/plugin-proposal-class-properties" "^7.0.0"
"@babel/plugin-proposal-export-default-from" "^7.0.0"
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0"
"@babel/plugin-proposal-object-rest-spread" "^7.0.0"
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
"@babel/plugin-proposal-optional-chaining" "^7.0.0"
"@babel/plugin-syntax-dynamic-import" "^7.0.0"
"@babel/plugin-syntax-export-default-from" "^7.0.0"
"@babel/plugin-syntax-flow" "^7.2.0"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0"
"@babel/plugin-syntax-optional-chaining" "^7.0.0"
"@babel/plugin-transform-arrow-functions" "^7.0.0"
"@babel/plugin-transform-block-scoping" "^7.0.0"
"@babel/plugin-transform-classes" "^7.0.0"
"@babel/plugin-transform-computed-properties" "^7.0.0"
"@babel/plugin-transform-destructuring" "^7.0.0"
"@babel/plugin-transform-exponentiation-operator" "^7.0.0"
"@babel/plugin-transform-flow-strip-types" "^7.0.0"
"@babel/plugin-transform-for-of" "^7.0.0"
"@babel/plugin-transform-function-name" "^7.0.0"
"@babel/plugin-transform-literals" "^7.0.0"
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
"@babel/plugin-transform-object-assign" "^7.0.0"
"@babel/plugin-transform-parameters" "^7.0.0"
"@babel/plugin-transform-react-display-name" "^7.0.0"
"@babel/plugin-transform-react-jsx" "^7.0.0"
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
"@babel/plugin-transform-regenerator" "^7.0.0"
"@babel/plugin-transform-runtime" "^7.0.0"
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
"@babel/plugin-transform-spread" "^7.0.0"
"@babel/plugin-transform-sticky-regex" "^7.0.0"
"@babel/plugin-transform-template-literals" "^7.0.0"
"@babel/plugin-transform-typescript" "^7.5.0"
"@babel/plugin-transform-unicode-regex" "^7.0.0"
"@babel/template" "^7.0.0"
react-refresh "^0.4.0"

[email protected], metro-react-native-babel-transformer@^0.66.1:
version "0.66.2"
resolved "https://registry.yarnpkg.com/metro-react-native-babel-transformer/-/metro-react-native-babel-transformer-0.66.2.tgz#768f341e7c3d3d1c38189799c9884b90d1c32eb7"
Expand Down

0 comments on commit dfe0431

Please sign in to comment.