Skip to content

Commit 8d109ab

Browse files
authored
switching to 'react-native-community/picker' for Picker native component. (#846)
1 parent 4ce92eb commit 8d109ab

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/components/WheelPicker/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import React, {Component} from 'react';
2-
import PropTypes from 'prop-types';
31
import _ from 'lodash';
4-
import {DeviceEventEmitter, requireNativeComponent, Picker, StyleSheet, View} from 'react-native';
2+
import PropTypes from 'prop-types';
3+
import React, {Component} from 'react';
4+
import {DeviceEventEmitter, requireNativeComponent, StyleSheet, View} from 'react-native';
5+
import {Picker} from '@react-native-community/picker';
56
import WheelPickerItem from './WheelPickerItem';
67
import {Constants} from '../../../src/helpers';
78
import {Typography, Colors} from '../../../src/style';

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"@react-native-community/datetimepicker": "^2.1.0",
6868
"@react-native-community/eslint-config": "latest",
6969
"@react-native-community/netinfo": "^5.6.2",
70+
"@react-native-community/picker": "^1.6.5",
7071
"@types/lodash": "^4.0.0",
7172
"@types/prop-types": "^15.5.3",
7273
"@types/react-native": "0.62.2",
@@ -107,7 +108,8 @@
107108
"react-native-reanimated": ">=1.4.0",
108109
"@react-native-community/blur": ">=3.4.1",
109110
"@react-native-community/datetimepicker": "^2.1.0",
110-
"@react-native-community/netinfo": "^5.6.2"
111+
"@react-native-community/netinfo": "^5.6.2",
112+
"@react-native-community/picker": "^1.6.5"
111113
},
112114
"jest": {
113115
"preset": "react-native",

0 commit comments

Comments
 (0)