From 077c0f70945a6c8341e28f7bcf86274e3868d2e1 Mon Sep 17 00:00:00 2001 From: nicholaslee119 Date: Fri, 22 Mar 2019 15:55:59 -0700 Subject: [PATCH] add checkbox-moved warning (#24098) Summary: checkbox has been moved to react-native-community in this PR: https://github.com/react-native-community/react-native-checkbox/pull/1 [General] [Changed] - Add warning info about checkbox which is moved to react native community Pull Request resolved: https://github.com/facebook/react-native/pull/24098 Differential Revision: D14585872 Pulled By: PeteTheHeat fbshipit-source-id: 02d0167a3bf32ff8fac3880c1e7b7c04d8f37b48 --- Libraries/react-native/react-native-implementation.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/react-native/react-native-implementation.js b/Libraries/react-native/react-native-implementation.js index a1efcb1ec79..0fba5df8d6b 100644 --- a/Libraries/react-native/react-native-implementation.js +++ b/Libraries/react-native/react-native-implementation.js @@ -29,6 +29,12 @@ module.exports = { return require('Button'); }, get CheckBox() { + warnOnce( + 'checkBox-moved', + 'CheckBox has been extracted from react-native core and will be removed in a future release. ' + + "It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " + + 'See https://github.com/react-native-community/react-native-checkbox', + ); return require('CheckBox'); }, get DatePickerIOS() {