Skip to content

Commit 2bf5b05

Browse files
committed
Use LogService for TabBar deprecation
1 parent 4aa522a commit 2bf5b05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/tabBar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React, {Component, ElementRef, RefObject} from 'react';
33
import {Platform, StyleSheet, ScrollView, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent} from 'react-native';
44
import {Colors} from '../../style';
55
import {Constants, asBaseComponent} from '../../commons/new';
6+
import {LogService} from '../../services';
67
import View from '../view';
78
import ScrollBar, {ScrollBarProps} from '../scrollBar';
89
import TabBarItem, {TabBarItemProps} from './TabBarItem';
@@ -99,7 +100,7 @@ class TabBar extends Component<TabBarProps, State> {
99100
this.scrollBar = React.createRef();
100101
this.itemsRefs = [];
101102

102-
console.warn('TabBar component is deprecated. Please use TabController instead.');
103+
LogService.componentDeprecationWarn({oldComponent: 'TabBar', newComponent: 'TabController'});
103104
}
104105

105106
componentDidUpdate(prevProps: TabBarProps, prevState: State) {

0 commit comments

Comments
 (0)