Skip to content

Commit 7eb9e2b

Browse files
authored
Remove 'style' prop from ColorPicker (#2480)
1 parent b4165b2 commit 7eb9e2b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/components/colorPicker/index.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, {PureComponent} from 'react';
2-
import {StyleSheet, StyleProp, ViewStyle} from 'react-native';
2+
import {StyleSheet} from 'react-native';
33
import Assets from '../../assets';
44
import {Colors} from '../../style';
55
import View from '../view';
66
import Button from '../button';
77
import ColorPalette from '../colorPalette';
88
import {SWATCH_MARGIN, SWATCH_SIZE} from '../colorSwatch';
99
import ColorPickerDialog, {ColorPickerDialogProps} from './ColorPickerDialog';
10-
import {LogService} from '../../services';
1110

1211
interface Props extends ColorPickerDialogProps {
1312
/**
@@ -41,7 +40,6 @@ interface Props extends ColorPickerDialogProps {
4140
doneButton?: string;
4241
input?: string;
4342
};
44-
style?: StyleProp<ViewStyle>;
4543
testID?: string;
4644
/**
4745
* The ColorPicker's background color
@@ -71,14 +69,6 @@ class ColorPicker extends PureComponent<Props> {
7169
backgroundColor: Colors.$backgroundDefault
7270
};
7371

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-
8272
state = {
8373
show: false
8474
};

0 commit comments

Comments
 (0)