Nativescript: Nativescript 6 - page.showModal does not work anymore

Created on 6 Aug 2019  路  3Comments  路  Source: NativeScript/NativeScript

After migrating my app to NS 6, the page.showModal does not work anymore.

I am calling it like:
page.showModal('/components/login/login', { context: null, closeCallback: (res: boolean) => { ... some code }, fullScreen: true});

I am getting the following error:
Argument of type '"components/login/login"' is not assignable to parameter of type 'ViewBase'

I looked through the documentation and I can't see what I am doing differently.

What is the proper way of making this call?

Thanks.

needs more info

Most helpful comment

Thank you @NickIliev . It is working now.

All 3 comments

it's working properly follow the document. i just work with it. After use ShowModalOptions option my modal are working properly. one more thing just close the terminal and restart your app.

```javascript
export function openModal(args) {
const mainView: Button =

@dpdragnev are you still experiencing this issue? If so, can you please provide a Playground demo that uses your app structure

Thank you @NickIliev . It is working now.

Was this page helpful?
0 / 5 - 0 ratings