Skip to content

Commit

Permalink
fix: Picker's test console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
1uokun committed Apr 21, 2020
1 parent aaac889 commit b04dbdd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const transformPackages = [
'react-native-camera-roll-picker',
'@bang88/react-native-ultimate-listview',
'@react-native-community/cameraroll',
'@react-native-community/viewpager'
'@react-native-community/viewpager',
'@react-native-community/picker'
];

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion components/picker/NativePicker.ios.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Picker as default } from 'react-native';
export { Picker as default } from '@react-native-community/picker';
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@ant-design/icons-react-native": "^2.0.0",
"@bang88/react-native-drawer-layout": "^2.0.3",
"@bang88/react-native-ultimate-listview": "^3.3.0",
"@react-native-community/picker": "^1.3.0",
"array-tree-filter": "~2.1.0",
"babel-runtime": "^6.x",
"deepmerge": "^3.0.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,11 @@
resolved "https://registry.yarnpkg.com/@react-native-community/masked-view/-/masked-view-0.1.9.tgz#383aca2fb053e3e14405c99cce2d5805df730821"
integrity sha512-nUtzbiLeXU0K9oVed6rc/WVrjGJwDSL4q1RTDkpZYU4j0FeovfuzcNUIDesD2r728LYfIop+uAgQdm+6qBOCug==

"@react-native-community/picker@^1.3.0":
version "1.3.0"
resolved "https://registry.npm.taobao.org/@react-native-community/picker/download/@react-native-community/picker-1.3.0.tgz#74be7dd93c54426677ddd68080ca253906a57e07"
integrity sha1-dL592TxUQmZ33daAgMolOQalfgc=

"@react-native-community/viewpager@^3.3.0":
version "3.3.0"
resolved "https://registry.yarnpkg.com/@react-native-community/viewpager/-/viewpager-3.3.0.tgz#e613747a43a31a6f3278f817ba96fdaaa7941f23"
Expand Down

0 comments on commit b04dbdd

Please sign in to comment.