react-native-picker-select
Advanced tools
Comparing version 6.3.2 to 6.3.3
@@ -0,1 +1,9 @@ | ||
### 6.3.3 | ||
##### Chore | ||
- Split off styles into separate file | ||
--- | ||
### 6.3.2 | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "react-native-picker-select", | ||
"version": "6.3.2", | ||
"version": "6.3.3", | ||
"description": "A Picker component for React Native which emulates the native <select> interfaces for each platform", | ||
@@ -23,6 +23,4 @@ "license": "MIT", | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"index.d.ts", | ||
"src/index.js" | ||
"/src" | ||
], | ||
@@ -29,0 +27,0 @@ "dependencies": { |
@@ -8,3 +8,2 @@ import React, { PureComponent } from 'react'; | ||
Platform, | ||
StyleSheet, | ||
Text, | ||
@@ -18,2 +17,3 @@ TextInput, | ||
import isEqual from 'lodash.isequal'; | ||
import { defaultStyles } from './styles'; | ||
@@ -522,67 +522,2 @@ export default class RNPickerSelect extends PureComponent { | ||
export const defaultStyles = StyleSheet.create({ | ||
viewContainer: { | ||
alignSelf: 'stretch', | ||
}, | ||
iconContainer: { | ||
position: 'absolute', | ||
right: 0, | ||
}, | ||
modalViewTop: { | ||
flex: 1, | ||
}, | ||
modalViewMiddle: { | ||
height: 44, | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
paddingHorizontal: 10, | ||
backgroundColor: '#EFF1F2', | ||
borderTopWidth: 0.5, | ||
borderTopColor: '#919498', | ||
zIndex: 2, | ||
}, | ||
chevronContainer: { | ||
flexDirection: 'row', | ||
}, | ||
chevron: { | ||
width: 15, | ||
height: 15, | ||
backgroundColor: 'transparent', | ||
borderColor: '#D0D4DB', | ||
borderTopWidth: 1.5, | ||
borderRightWidth: 1.5, | ||
}, | ||
chevronUp: { | ||
marginLeft: 11, | ||
transform: [{ translateY: 4 }, { rotate: '-45deg' }], | ||
}, | ||
chevronDown: { | ||
marginLeft: 22, | ||
transform: [{ translateY: -5 }, { rotate: '135deg' }], | ||
}, | ||
chevronActive: { | ||
borderColor: '#007AFE', | ||
}, | ||
done: { | ||
color: '#007AFE', | ||
fontWeight: 'bold', | ||
fontSize: 15, | ||
paddingTop: 1, | ||
paddingRight: 2, | ||
}, | ||
modalViewBottom: { | ||
justifyContent: 'center', | ||
backgroundColor: '#D0D4DB', | ||
}, | ||
placeholder: { | ||
color: '#C7C7CD', | ||
}, | ||
headlessAndroidPicker: { | ||
position: 'absolute', | ||
width: '100%', | ||
height: '100%', | ||
color: 'transparent', | ||
opacity: 0, | ||
}, | ||
}); | ||
export { defaultStyles }; |
41415
7
560