i want to fix screen orientation in only one page of my application ? is there any way ?Scroll view is not working gud? is any other option ?
Screen rotation want to be fixed
Hi, do you mean something like this https://www.npmjs.com/package/nativescript-screen-orientation?
Yes, it is possible to set it just for one page. I am using it that way. You can try the examples on that link.
after installing the plugin ,i didt see any change to my code…
constructor(page:Page){
page.on(“navigatedTo”,function(){
setCurrentOrientation(“portrait”,function(){
console.log(“portrait orientation”);
});
});
page.on(“navigatingFrom”,function(){
orientationCleanup();
});
});
}
i use this to my page…no error…but nothing will changed
yup…i try to console.log(“landscape”) and also try alert message…but nothing will display ? no changes
have you tried calling setCurrentOrientation directly from the constructor, not inside the page navigation events?