diff --git a/lib/countryPicker.js b/lib/countryPicker.js index 1879ebee..9b25e339 100644 --- a/lib/countryPicker.js +++ b/lib/countryPicker.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; -import { Text, TouchableOpacity, View, Modal, Picker } from 'react-native'; +import { Text, TouchableOpacity, View, Modal } from 'react-native'; +import {Picker} from '@react-native-community/picker'; import PropTypes from 'prop-types'; import Country from './country'; diff --git a/package.json b/package.json index ab4450df..a6fe2c51 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "dependencies": { "google-libphonenumber": "^3.2.2", "lodash": "^4.17.4", - "prop-types": "^15.5.10" + "prop-types": "^15.5.10", + "@react-native-community/picker": "^1.6.5" }, "peerDependencies": { "react-native": ">= 0.25"