Skip to content

Commit ca6488c

Browse files
committed
804
1 parent ec3a1ee commit ca6488c

File tree

6 files changed

+25
-20
lines changed

6 files changed

+25
-20
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 8.0.4
2+
3+
##### Bugfix
4+
5+
- Moved dep to @react-native-picker/picker
6+
7+
---
8+
19
## 8.0.3
210

311
##### Bugfix

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ For either platform, you can alternatively pass down a child element of your cho
2424
```
2525
npm install react-native-picker-select
2626
27-
28-
# if you see a `Invariant Violation: requireNativeComponent "RNCPicker" was not found in the UIManager` error:
29-
3027
# React Native users
31-
npm install @react-native-community/picker
28+
npm install @react-native-picker/picker
3229
npx pod-install
3330
3431
# Expo
35-
expo install @react-native-community/picker
32+
expo install @react-native-picker/picker
3633
```
3734

3835
### Basic Usage
@@ -56,11 +53,11 @@ export const Dropdown = () => {
5653

5754
### Versioning
5855

59-
| Version | Notes |
60-
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
61-
| >= 8.0.0 | Uses [@react-native-community/picker](https://github.com/react-native-community/react-native-picker#readme). React Native 0.60 or above. If using Expo, SDK38 or above. |
62-
| >= 3.0.0 | React v16.3 or above. |
63-
| <&nbsp;3.0.0 | React v16.2 or below. |
56+
| Version | Notes |
57+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
58+
| >=&nbsp;8.0.0 | Uses [@react-native-picker/picker](https://github.com/react-native-picker/picker#readme). React Native 0.60 or above. If using Expo, SDK38 or above. |
59+
| >=&nbsp;3.0.0 | React v16.3 or above. |
60+
| <&nbsp;3.0.0 | React v16.2 or below. |
6461

6562
### Props
6663

@@ -120,7 +117,7 @@ All properties mentioned below must be nested under the `style` prop. Examples o
120117
If you need to add accessibility props to the rendered component, you may use `pickerProps` and `touchableWrapperProps` to pass these through.
121118

122119
`pickerProps` accepts an object of props that get passed directly to the native `<Picker />` component.
123-
`touchableWrapperProps` also accepts an object of props, but this gets passed to a `<TouchableOpacity />` that toggles the visibility of the picker.<sup>*note: `touchableWrapperProps` is not supported on web or when `useNativeAndroidPickerStyle={true}`</sup>
120+
`touchableWrapperProps` also accepts an object of props, but this gets passed to a `<TouchableOpacity />` that toggles the visibility of the picker.<sup>\*note: `touchableWrapperProps` is not supported on web or when `useNativeAndroidPickerStyle={true}`</sup>
124121

125122
### Accessibility Example
126123

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ViewStyle,
77
} from 'react-native';
88
import React from 'react';
9-
import { PickerProps } from '@react-native-community/picker/typings/Picker';
9+
import { PickerProps } from '@react-native-picker/picker/typings/Picker';
1010

1111
export interface Item {
1212
label: string;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-picker-select",
3-
"version": "8.0.3",
3+
"version": "8.0.4",
44
"description": "A Picker component for React Native which emulates the native <select> interfaces for each platform",
55
"license": "MIT",
66
"author": "Michael Lefkowitz <[email protected]>",
@@ -24,7 +24,7 @@
2424
"/src"
2525
],
2626
"dependencies": {
27-
"@react-native-community/picker": "1.6.0",
27+
"@react-native-picker/picker": "^1.8.3",
2828
"lodash.isequal": "^4.5.0"
2929
},
3030
"devDependencies": {
@@ -70,7 +70,7 @@
7070
"enzyme-to-json/serializer"
7171
],
7272
"transformIgnorePatterns": [
73-
"node_modules/?!(@react-native-community/picker)"
73+
"node_modules/?!(@react-native-picker/picker)"
7474
]
7575
}
7676
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
22
import { Keyboard, Modal, Platform, Text, TextInput, TouchableOpacity, View } from 'react-native';
33
import PropTypes from 'prop-types';
44
import isEqual from 'lodash.isequal';
5-
import { Picker } from '@react-native-community/picker';
5+
import { Picker } from '@react-native-picker/picker';
66
import { defaultStyles } from './styles';
77

88
export default class RNPickerSelect extends PureComponent {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,10 +780,10 @@
780780
lodash "^4.17.19"
781781
to-fast-properties "^2.0.0"
782782

783-
"@react-native-community/picker@1.6.0":
784-
version "1.6.0"
785-
resolved "https://registry.yarnpkg.com/@react-native-community/picker/-/picker-1.6.0.tgz#ddb2b04ca251b79980e3052ece4e685b7abf0444"
786-
integrity sha512-ijB33rCW3m9vu8jbXAcEh+icCmK0pyvCXiGfAwPgGSaFLsmE27dsle3022EbE+dqqQgpxUNtOkrd5C3B+/dcuA==
783+
"@react-native-picker/picker@^1.8.3":
784+
version "1.8.3"
785+
resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-1.8.3.tgz#fcbf969a4add749fc37ef064a5eb55eadc93db39"
786+
integrity sha512-zfr8k9L5BJVN7fIrmrto1cCptZjkGoiKWeZTsCR+XormQnWj0Tqrv0S9Ni3SvdT5JZ2OAQ9H+edMRSUvrAxwQA==
787787

788788
"@types/minimatch@^3.0.3":
789789
version "3.0.3"

0 commit comments

Comments
 (0)