Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/components/colorPicker/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React, {PureComponent} from 'react';
import {StyleSheet, StyleProp, ViewStyle} from 'react-native';
import {StyleSheet} from 'react-native';
import Assets from '../../assets';
import {Colors} from '../../style';
import View from '../view';
import Button from '../button';
import ColorPalette from '../colorPalette';
import {SWATCH_MARGIN, SWATCH_SIZE} from '../colorSwatch';
import ColorPickerDialog, {ColorPickerDialogProps} from './ColorPickerDialog';
import {LogService} from '../../services';

interface Props extends ColorPickerDialogProps {
/**
Expand Down Expand Up @@ -41,7 +40,6 @@ interface Props extends ColorPickerDialogProps {
doneButton?: string;
input?: string;
};
style?: StyleProp<ViewStyle>;
testID?: string;
/**
* The ColorPicker's background color
Expand Down Expand Up @@ -71,14 +69,6 @@ class ColorPicker extends PureComponent<Props> {
backgroundColor: Colors.$backgroundDefault
};

constructor(props: Props) {
super(props);

if (props.style) {
LogService.warn(`UILib ColorPicker's 'style' prop is deprecated. You can use the 'backgroundColor' prop instead`);
}
}

state = {
show: false
};
Expand Down