How to use TakesScreenshot and getScreenshotAs with node js on ios

I am using

ios 9.1 simulator
Appium 1.4.13

I am using .saveScreenshot driver method to take the screenshot and save in the folder. But the screenshot images are not full and they are cropped for some reason. And the examples here are usually for java.

Can someone help with taking screenshot on ios with node js?

I am new to appium and node. Thanks a lot.

Did u tried java way of taking screenshot ? Like it was used for a web pageā€¦