在react本机应用程序中显示操作系统特定的弹出窗口



在我的react原生应用程序中,我只是想办法打开系统特定的弹出窗口,而不是react原生Modal或Alert。有什么方法可以显示设备操作系统特定的弹出窗口吗?即当我们在电话拨号盘中使用一些USSD时,弹出窗口出现。提前感谢!

import {
ToastAndroid,
Platform,
AlertIOS,
} from 'react-native';
function notifyMessage(msg) {
if (Platform.OS === 'android') {
ToastAndroid.show(msg, 2000)
} else {
AlertIOS.alert(msg);
}
}

相关内容

最新更新