mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[ReactNative] Replace Backstack with BackAndroid
This commit is contained in:
21
Libraries/Utilities/BackAndroid.ios.js
Normal file
21
Libraries/Utilities/BackAndroid.ios.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* iOS stub for BackAndroid.android.js
|
||||
*
|
||||
* @providesModule BackAndroid
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var warning = require('warning');
|
||||
|
||||
function platformWarn() {
|
||||
warning(false, 'BackAndroid is not supported on this platform.');
|
||||
}
|
||||
|
||||
var BackAndroid = {
|
||||
exitApp: platformWarn,
|
||||
addEventListener: platformWarn,
|
||||
removeEventListener: platformWarn,
|
||||
};
|
||||
|
||||
module.exports = BackAndroid;
|
||||
Reference in New Issue
Block a user