Skip to content

Commit

Permalink
804
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkwtz committed Dec 3, 2020
1 parent ec3a1ee commit ca6488c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 20 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 8.0.4

##### Bugfix

- Moved dep to @react-native-picker/picker

---

## 8.0.3

##### Bugfix
Expand Down
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ For either platform, you can alternatively pass down a child element of your cho
```
npm install react-native-picker-select
# if you see a `Invariant Violation: requireNativeComponent "RNCPicker" was not found in the UIManager` error:
# React Native users
npm install @react-native-community/picker
npm install @react-native-picker/picker
npx pod-install
# Expo
expo install @react-native-community/picker
expo install @react-native-picker/picker
```

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

### Versioning

| Version | Notes |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| >= 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. |
| >= 3.0.0 | React v16.3 or above. |
| <&nbsp;3.0.0 | React v16.2 or below. |
| Version | Notes |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| >=&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. |
| >=&nbsp;3.0.0 | React v16.3 or above. |
| <&nbsp;3.0.0 | React v16.2 or below. |

### Props

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

`pickerProps` accepts an object of props that get passed directly to the native `<Picker />` component.
`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>
`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>

### Accessibility Example

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ViewStyle,
} from 'react-native';
import React from 'react';
import { PickerProps } from '@react-native-community/picker/typings/Picker';
import { PickerProps } from '@react-native-picker/picker/typings/Picker';

export interface Item {
label: string;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-picker-select",
"version": "8.0.3",
"version": "8.0.4",
"description": "A Picker component for React Native which emulates the native <select> interfaces for each platform",
"license": "MIT",
"author": "Michael Lefkowitz <[email protected]>",
Expand All @@ -24,7 +24,7 @@
"/src"
],
"dependencies": {
"@react-native-community/picker": "1.6.0",
"@react-native-picker/picker": "^1.8.3",
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
Expand Down Expand Up @@ -70,7 +70,7 @@
"enzyme-to-json/serializer"
],
"transformIgnorePatterns": [
"node_modules/?!(@react-native-community/picker)"
"node_modules/?!(@react-native-picker/picker)"
]
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import { Keyboard, Modal, Platform, Text, TextInput, TouchableOpacity, View } from 'react-native';
import PropTypes from 'prop-types';
import isEqual from 'lodash.isequal';
import { Picker } from '@react-native-community/picker';
import { Picker } from '@react-native-picker/picker';
import { defaultStyles } from './styles';

export default class RNPickerSelect extends PureComponent {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,10 @@
lodash "^4.17.19"
to-fast-properties "^2.0.0"

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

"@types/minimatch@^3.0.3":
version "3.0.3"
Expand Down

0 comments on commit ca6488c

Please sign in to comment.