From 997f382adcc7f82fccd97ac671d13e86aef7171e Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Thu, 4 Oct 2018 14:20:04 -0700 Subject: [PATCH] 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 --- Libraries/Components/Switch/Switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 6622d44fa405f1..80fe6306d7228c 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -109,7 +109,7 @@ class Switch extends React.Component { _thumbColor = thumbTintColor; if (__DEV__) { console.warn( - 'Switch: `thumbTintColor` is deprecated, use `_thumbColor` instead.', + 'Switch: `thumbTintColor` is deprecated, use `thumbColor` instead.', ); } }