【问题标题】:nativescript-toast not showing on iOSnativescript-toast 未在 iOS 上显示
【发布时间】:2019-09-06 15:48:28
【问题描述】:

在我更新到最新版本的 nativescript-toast 后,它在 iOS 中停止工作(在 Android 中它工作正常)。我的意思是,没有显示 toast,而应用程序按预期运行。

在以前的版本中,一切都按预期进行。但是在我更新到新的之后,它停止工作并且还将 pod SBToaster 添加到我的 podfile 中。

这是 package.json

"nativescript-toast": "^2.0.0",

过去我的版本是 1.4.6

在我的 Podfile 中有:

pod 'SBToaster', '~> 2.1.2'
pod 'Toast'

在我的组件中我有:

Toast.makeText(message).show();

【问题讨论】:

  • 请问您是从哪个版本升级到哪个版本的?您的应用程序中是否有 page-router-outlet (Frame)?
  • 当然!我有版本 1.4.6。是的,我有一个页面路由器出口,方式如下:''
  • @Faabass 你修好了吗?
  • 不……还没有……你有同样的问题吗?
  • 您使用的是哪个版本的 {NS}?

标签: nativescript angular2-nativescript


【解决方案1】:

我在使用最新 SDK 上的 nativescript-toast 插件时遇到了各种兼容性问题。最简单的方法似乎是切换到更相关和最新的nativescript-toasty 插件。

tns plugin add nativescript-toasty

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2016-10-28
  • 1970-01-01
  • 1970-01-01
  • 2015-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多