Skip to content

Commit

Permalink
5.1.1 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkwtz authored Dec 9, 2018
1 parent e0c19ff commit dcd67c2
Show file tree
Hide file tree
Showing 7 changed files with 1,670 additions and 1,198 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### v5.1.1

##### New

- Opened up headlessAndroidPicker and chevronContainer on style object for modification

### v5.1.0

##### New
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For Android, we are using the native Picker component, but adding a pseudo-under

For either platform, you can alternatively pass down a child element that will be wrapped in a touchable area, triggering the picker.

![iOS Example](./example/ios-example.gif) ![Android Example](./example/android-example.png)
![iOS Example](./example/ios-example.gif) ![Android Example](./example/android-example.gif)

[Examples](https://github.com/lawnstarter/react-native-picker-select/tree/master/example)

Expand Down
Binary file added example/android-example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/android-example.png
Binary file not shown.
17 changes: 16 additions & 1 deletion example/example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Alert, Text, TextInput, StyleSheet, View } from 'react-native';
import RNPickerSelect from 'react-native-picker-select';
// import RNPickerSelect from './debug'

export default class App extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -56,7 +57,7 @@ export default class App extends React.Component {
this.setState({
items: this.state.items.concat([{ value: 'purple', label: 'Purple' }]),
});
}, 2000);
}, 2500);
}

render() {
Expand All @@ -83,6 +84,7 @@ export default class App extends React.Component {
placeholder={{
label: 'Select a color...',
value: null,
color: '#9EA0A4',
}}
items={this.state.items}
onValueChange={(value) => {
Expand Down Expand Up @@ -110,6 +112,7 @@ export default class App extends React.Component {
placeholder={{
label: 'Select a sport...',
value: null,
color: '#9EA0A4',
}}
items={this.state.items2}
onValueChange={(value) => {
Expand All @@ -128,6 +131,7 @@ export default class App extends React.Component {
ref={(el) => {
this.inputRefs.picker2 = el;
}}
useNativeAndroidPickerStyle={false}
/>

<View style={{ paddingVertical: 5 }} />
Expand Down Expand Up @@ -170,4 +174,15 @@ const pickerSelectStyles = StyleSheet.create({
backgroundColor: 'white',
color: 'black',
},
inputAndroid: {
fontSize: 16,
paddingTop: 13,
paddingHorizontal: 10,
paddingBottom: 12,
borderWidth: 1,
borderColor: 'gray',
borderRadius: 4,
backgroundColor: 'white',
color: 'black',
},
});
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-picker-select",
"version": "5.1.0",
"version": "5.1.1",
"description": "A Picker component for React Native which emulates the native <select> interfaces for each platform",
"license": "MIT",
"author": "Michael Lefkowitz <lefkowitz.michael@gmail.com>",
Expand Down Expand Up @@ -29,21 +29,21 @@
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"babel-jest": "^23.4.0",
"babel-preset-react-native": "^4.0.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.4",
"eslint-config-ls-react": "https://github.com/lawnstarter/eslint-config-ls-react#2.0.1",
"babel-jest": "^23.6.0",
"babel-preset-react-native": "^4.0.1",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"enzyme-to-json": "^3.3.5",
"eslint-config-ls-react": "https://github.com/lawnstarter/eslint-config-ls-react#2.0.3",
"husky": "^0.14.3",
"jest": "^23.4.1",
"prettier": "^1.13.7",
"pretty-quick": "^1.6.0",
"jest": "^23.6.0",
"prettier": "^1.15.3",
"pretty-quick": "^1.8.0",
"prop-types": "^15.6.2",
"react": "16.4.1",
"react-dom": "^16.4.1",
"react-native": "0.55.4",
"react-test-renderer": "^16.4.1"
"react": "16.6.1",
"react-dom": "^16.6.1",
"react-native": "0.57.7",
"react-test-renderer": "^16.6.1"
},
"scripts": {
"test": "jest",
Expand Down
Loading

0 comments on commit dcd67c2

Please sign in to comment.