Skip to content

Commit

Permalink
Merge pull request #3230 from Simranjit1080/master
Browse files Browse the repository at this point in the history
fix: error->importing picker from react-native core is deprecated
  • Loading branch information
shivrajkumar authored Sep 4, 2020
2 parents 4764338 + 117f7e2 commit 5fbb479
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"react-native-drawer": "2.5.1",
"react-native-easy-grid": "0.2.2",
"react-native-vector-icons": "^7.0.0",
"@react-native-community/picker": "^1.6.6",
"react-tween-state": "^0.1.5",
"tween-functions": "^1.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/basic/Picker.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable react/prefer-es6-class */
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import { Picker } from 'react-native';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
Expand Down
3 changes: 2 additions & 1 deletion src/basic/Picker.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { FlatList, Modal, Picker, View, ViewPropTypes } from 'react-native';
import { FlatList, Modal, View, ViewPropTypes } from 'react-native';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';
import { find, get } from 'lodash';

Expand Down
2 changes: 1 addition & 1 deletion src/basic/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable react/prefer-es6-class */
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import { Picker } from 'react-native';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
Expand Down
2 changes: 1 addition & 1 deletion src/basic/PickerItem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Picker } from 'react-native';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
Expand Down

0 comments on commit 5fbb479

Please sign in to comment.