mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Fix deprecation warning message in Switch
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/21479 Differential Revision: D10205122 Pulled By: TheSavior fbshipit-source-id: a7bbdae3b5dd6b47c4dc995e3c2e8e40abb64f13
This commit is contained in:
committed by
Facebook Github Bot
parent
12ab08a5aa
commit
997f382adc
@@ -109,7 +109,7 @@ class Switch extends React.Component<Props> {
|
||||
_thumbColor = thumbTintColor;
|
||||
if (__DEV__) {
|
||||
console.warn(
|
||||
'Switch: `thumbTintColor` is deprecated, use `_thumbColor` instead.',
|
||||
'Switch: `thumbTintColor` is deprecated, use `thumbColor` instead.',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user