Skip to content

Commit 32c9674

Browse files
committed
use Picker from react-native-community instead of deprecated RN built-in component
fixes #120
1 parent 43d9356 commit 32c9674

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/countryPicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from 'react';
2-
import { Text, TouchableOpacity, View, Modal, Picker } from 'react-native';
2+
import { Text, TouchableOpacity, View, Modal } from 'react-native';
3+
import {Picker} from '@react-native-community/picker';
34
import PropTypes from 'prop-types';
45

56
import Country from './country';

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"dependencies": {
2727
"google-libphonenumber": "^3.2.2",
2828
"lodash": "^4.17.4",
29-
"prop-types": "^15.5.10"
29+
"prop-types": "^15.5.10",
30+
"@react-native-community/picker": "^1.6.5"
3031
},
3132
"peerDependencies": {
3233
"react-native": ">= 0.25"

0 commit comments

Comments
 (0)