Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presentationStyle, height and width don't work in showModal. #180

Open
howieluo opened this issue May 5, 2020 · 0 comments
Open

presentationStyle, height and width don't work in showModal. #180

howieluo opened this issue May 5, 2020 · 0 comments

Comments

@howieluo
Copy link

howieluo commented May 5, 2020

I change the property fullscreen and added a new property ios like below in nativescript-sdk-examples-js/app/ns-ui-category/modal-view/basics/basics-page.js:

function openModal(args) {
const mainView = args.object;
const option = {
context: { username: "test_username", password: "test" },
closeCallback: (username, password) => {
// Receive data from the modal view. e.g. username & password
alert(Username: ${username} : Password: ${password});
},
fullscreen: false,
ios: {
presentationStyle: 7,
height: 100,
width: 50
}

};
mainView.showModal(modalViewModule, option);

}

But, I find that presentationStyle, height and width don't work. The modal view is almost full screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant