Skip to content

Commit 81e0fe9

Browse files
authored
Start deprecation of old WheelPicker (#1723)
1 parent cfa7c92 commit 81e0fe9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/components/WheelPicker/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {DeviceEventEmitter, requireNativeComponent, StyleSheet, View, ViewStyle,
44

55
import WheelPickerItem from './WheelPickerItem';
66
import {Constants} from '../../../src/commons/new';
7+
import {LogService} from '../../../src/services';
78
import {Typography, Colors} from '../../../src/style';
89

910
import {PickerPackage, CommunityPickerPackage} from '../../../src/optionalDependencies';
@@ -67,6 +68,8 @@ class WheelPicker extends Component<WheelPickerProps> {
6768
this.onValueChange = this.onValueChange.bind(this); //eslint-disable-line
6869
this.getItems();
6970
DeviceEventEmitter.addListener('log', this.onLogReceived); // TODO: consider moving to a more generic place (base class?)
71+
72+
LogService.componentDeprecationWarn({oldComponent: 'WheelPicker', newComponent: 'Incubator.WheelPicker'});
7073
}
7174

7275
state = {

0 commit comments

Comments
 (0)