# Getting the resolution of phone size

**URL:** <https://forums.fusetools.com/t/getting-the-resolution-of-phone-size/3983>\
**Category:** How-to Discussions\
**Created:** [July 22, 2015, 5:22am UTC](https://forums.fusetools.com/t/getting-the-resolution-of-phone-size/3983 "2015-07-22T05:22:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sky\_YIp](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Sky\_YIp](https://forums.fusetools.com/u/Sky_YIp)\
**Post date:** [July 22, 2015, 5:22am UTC](https://forums.fusetools.com/t/getting-the-resolution-of-phone-size/3983/1 "2015-07-22T05:22:01Z")

</div>

Is there any possible solution to retrieve the resolution of phone size （both height and width）,at the beginning of the js file? (NOT IN UNO)

var height\_screen = (somefunction); var width\_screen = (somefunction);

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [July 22, 2015, 5:28am UTC](https://forums.fusetools.com/t/getting-the-resolution-of-phone-size/3983/2 "2015-07-22T05:28:09Z")

</div>

Hi! Currently I can’t think of any easy way. I’ve added a ticket for this feature.

You can however make your own custom Uno module and expose those functions to JS yourself:

[https://www.fusetools.com/developers/guides/fusejs/nativemodules](https://www.fusetools.com/developers/guides/fusejs/nativemodules)
