mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Add back removal notice of BackAndroid
Summary:
This was deleted as part of 774cd73663
I forgot that we normally keep the getter at the bottom of the module with an invariant so that people get clearer messages when they upgrade.
Reviewed By: yungsters
Differential Revision: D10475667
fbshipit-source-id: fcc527cd8117a506096a910a602272e092b8672d
This commit is contained in:
committed by
Facebook Github Bot
parent
13378e6aa0
commit
0ceda1b0a5
@@ -330,6 +330,14 @@ module.exports = {
|
||||
},
|
||||
|
||||
// Deprecated
|
||||
get BackAndroid() {
|
||||
invariant(
|
||||
false,
|
||||
'BackAndroid is deprecated and has been removed from this package. ' +
|
||||
'Use BackHandler instead',
|
||||
);
|
||||
},
|
||||
|
||||
get Navigator() {
|
||||
invariant(
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user