File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/components/colorPicker Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
import React , { PureComponent } from 'react' ;
2
- import { StyleSheet , StyleProp , ViewStyle } from 'react-native' ;
2
+ import { StyleSheet } from 'react-native' ;
3
3
import Assets from '../../assets' ;
4
4
import { Colors } from '../../style' ;
5
5
import View from '../view' ;
6
6
import Button from '../button' ;
7
7
import ColorPalette from '../colorPalette' ;
8
8
import { SWATCH_MARGIN , SWATCH_SIZE } from '../colorSwatch' ;
9
9
import ColorPickerDialog , { ColorPickerDialogProps } from './ColorPickerDialog' ;
10
- import { LogService } from '../../services' ;
11
10
12
11
interface Props extends ColorPickerDialogProps {
13
12
/**
@@ -41,7 +40,6 @@ interface Props extends ColorPickerDialogProps {
41
40
doneButton ?: string ;
42
41
input ?: string ;
43
42
} ;
44
- style ?: StyleProp < ViewStyle > ;
45
43
testID ?: string ;
46
44
/**
47
45
* The ColorPicker's background color
@@ -71,14 +69,6 @@ class ColorPicker extends PureComponent<Props> {
71
69
backgroundColor : Colors . $backgroundDefault
72
70
} ;
73
71
74
- constructor ( props : Props ) {
75
- super ( props ) ;
76
-
77
- if ( props . style ) {
78
- LogService . warn ( `UILib ColorPicker's 'style' prop is deprecated. You can use the 'backgroundColor' prop instead` ) ;
79
- }
80
- }
81
-
82
72
state = {
83
73
show : false
84
74
} ;
You can’t perform that action at this time.
0 commit comments