Skip to content

Commit

Permalink
use Picker from react-native-community instead of deprecated RN bui…
Browse files Browse the repository at this point in the history
…lt-in component

fixes #120
  • Loading branch information
wzs committed Jun 22, 2020
1 parent 43d9356 commit 32c9674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/countryPicker.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 32c9674

Please sign in to comment.