mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
fix ToastAndroid
Differential Revision: D2433671 committer: Service User <svcscm@fb.com>
This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user