File tree 7 files changed +81
-76
lines changed
react-native-picker-select
7 files changed +81
-76
lines changed Original file line number Diff line number Diff line change
1
+ ### 6.3.3
2
+
3
+ ##### Chore
4
+
5
+ - Split off styles into separate file
6
+
7
+ ---
8
+
1
9
### 6.3.2
2
10
3
11
##### Bugfix
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
} from 'react-native' ;
12
12
import { Chevron } from 'react-native-shapes' ;
13
13
// import { Ionicons } from '@expo/vector-icons';
14
- import RNPickerSelect , { defaultStyles } from './rnpickerselect ' ;
14
+ import RNPickerSelect , { defaultStyles } from './react-native-picker-select ' ;
15
15
16
16
const sports = [
17
17
{
Original file line number Diff line number Diff line change 1
- /**
2
- * @format
3
- */
4
-
5
1
import { AppRegistry } from 'react-native' ;
6
2
import App from './App' ;
7
3
import { name as appName } from './app.json' ;
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-picker-select" ,
3
- "version" : " 6.3.2 " ,
3
+ "version" : " 6.3.3 " ,
4
4
"description" : " A Picker component for React Native which emulates the native <select> interfaces for each platform" ,
5
5
"license" : " MIT" ,
6
6
"author" :
" Michael Lefkowitz <[email protected] >" ,
20
20
" items"
21
21
],
22
22
"files" : [
23
- " LICENSE" ,
24
- " README.md" ,
25
23
" index.d.ts" ,
26
- " src/index.js "
24
+ " /src "
27
25
],
28
26
"dependencies" : {
29
27
"lodash.isequal" : " ^4.5.0"
Original file line number Diff line number Diff line change 5
5
Modal ,
6
6
Picker ,
7
7
Platform ,
8
- StyleSheet ,
9
8
Text ,
10
9
TextInput ,
11
10
TouchableOpacity ,
@@ -14,6 +13,7 @@ import {
14
13
} from 'react-native' ;
15
14
import PropTypes from 'prop-types' ;
16
15
import isEqual from 'lodash.isequal' ;
16
+ import { defaultStyles } from './styles' ;
17
17
18
18
export default class RNPickerSelect extends PureComponent {
19
19
static propTypes = {
@@ -517,69 +517,4 @@ export default class RNPickerSelect extends PureComponent {
517
517
}
518
518
}
519
519
520
- export const defaultStyles = StyleSheet . create ( {
521
- viewContainer : {
522
- alignSelf : 'stretch' ,
523
- } ,
524
- iconContainer : {
525
- position : 'absolute' ,
526
- right : 0 ,
527
- } ,
528
- modalViewTop : {
529
- flex : 1 ,
530
- } ,
531
- modalViewMiddle : {
532
- height : 44 ,
533
- flexDirection : 'row' ,
534
- justifyContent : 'space-between' ,
535
- alignItems : 'center' ,
536
- paddingHorizontal : 10 ,
537
- backgroundColor : '#EFF1F2' ,
538
- borderTopWidth : 0.5 ,
539
- borderTopColor : '#919498' ,
540
- zIndex : 2 ,
541
- } ,
542
- chevronContainer : {
543
- flexDirection : 'row' ,
544
- } ,
545
- chevron : {
546
- width : 15 ,
547
- height : 15 ,
548
- backgroundColor : 'transparent' ,
549
- borderColor : '#D0D4DB' ,
550
- borderTopWidth : 1.5 ,
551
- borderRightWidth : 1.5 ,
552
- } ,
553
- chevronUp : {
554
- marginLeft : 11 ,
555
- transform : [ { translateY : 4 } , { rotate : '-45deg' } ] ,
556
- } ,
557
- chevronDown : {
558
- marginLeft : 22 ,
559
- transform : [ { translateY : - 5 } , { rotate : '135deg' } ] ,
560
- } ,
561
- chevronActive : {
562
- borderColor : '#007AFE' ,
563
- } ,
564
- done : {
565
- color : '#007AFE' ,
566
- fontWeight : 'bold' ,
567
- fontSize : 15 ,
568
- paddingTop : 1 ,
569
- paddingRight : 2 ,
570
- } ,
571
- modalViewBottom : {
572
- justifyContent : 'center' ,
573
- backgroundColor : '#D0D4DB' ,
574
- } ,
575
- placeholder : {
576
- color : '#C7C7CD' ,
577
- } ,
578
- headlessAndroidPicker : {
579
- position : 'absolute' ,
580
- width : '100%' ,
581
- height : '100%' ,
582
- color : 'transparent' ,
583
- opacity : 0 ,
584
- } ,
585
- } ) ;
520
+ export { defaultStyles } ;
Original file line number Diff line number Diff line change
1
+ import { StyleSheet } from 'react-native' ;
2
+
3
+ export const defaultStyles = StyleSheet . create ( {
4
+ viewContainer : {
5
+ alignSelf : 'stretch' ,
6
+ } ,
7
+ iconContainer : {
8
+ position : 'absolute' ,
9
+ right : 0 ,
10
+ } ,
11
+ modalViewTop : {
12
+ flex : 1 ,
13
+ } ,
14
+ modalViewMiddle : {
15
+ height : 44 ,
16
+ flexDirection : 'row' ,
17
+ justifyContent : 'space-between' ,
18
+ alignItems : 'center' ,
19
+ paddingHorizontal : 10 ,
20
+ backgroundColor : '#EFF1F2' ,
21
+ borderTopWidth : 0.5 ,
22
+ borderTopColor : '#919498' ,
23
+ zIndex : 2 ,
24
+ } ,
25
+ chevronContainer : {
26
+ flexDirection : 'row' ,
27
+ } ,
28
+ chevron : {
29
+ width : 15 ,
30
+ height : 15 ,
31
+ backgroundColor : 'transparent' ,
32
+ borderColor : '#D0D4DB' ,
33
+ borderTopWidth : 1.5 ,
34
+ borderRightWidth : 1.5 ,
35
+ } ,
36
+ chevronUp : {
37
+ marginLeft : 11 ,
38
+ transform : [ { translateY : 4 } , { rotate : '-45deg' } ] ,
39
+ } ,
40
+ chevronDown : {
41
+ marginLeft : 22 ,
42
+ transform : [ { translateY : - 5 } , { rotate : '135deg' } ] ,
43
+ } ,
44
+ chevronActive : {
45
+ borderColor : '#007AFE' ,
46
+ } ,
47
+ done : {
48
+ color : '#007AFE' ,
49
+ fontWeight : 'bold' ,
50
+ fontSize : 15 ,
51
+ paddingTop : 1 ,
52
+ paddingRight : 2 ,
53
+ } ,
54
+ modalViewBottom : {
55
+ justifyContent : 'center' ,
56
+ backgroundColor : '#D0D4DB' ,
57
+ } ,
58
+ placeholder : {
59
+ color : '#C7C7CD' ,
60
+ } ,
61
+ headlessAndroidPicker : {
62
+ position : 'absolute' ,
63
+ width : '100%' ,
64
+ height : '100%' ,
65
+ color : 'transparent' ,
66
+ opacity : 0 ,
67
+ } ,
68
+ } ) ;
You can’t perform that action at this time.
0 commit comments