mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 09:08:58 +08:00
fix ToastAndroid
Differential Revision: D2433671 committer: Service User <svcscm@fb.com>
This commit is contained in:
committed by
facebook-github-bot-7
parent
789a07c5a4
commit
d7ee28e079
@@ -10,4 +10,17 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
module.exports = require('UnimplementedView');
|
||||
var warning = require('warning');
|
||||
|
||||
var ToastAndroid = {
|
||||
|
||||
show: function (
|
||||
message: string,
|
||||
duration: number
|
||||
): void {
|
||||
warning(false, 'Cannot use ToastAndroid on iOS.');
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
module.exports = ToastAndroid;
|
||||
|
||||
Reference in New Issue
Block a user