move frame position conversion methods to ios namespace

This commit is contained in:
Martin Yankov
2018-08-24 18:13:21 +03:00
parent 5b2f8c7248
commit 50a6073f33
3 changed files with 29 additions and 47 deletions

View File

@@ -531,16 +531,6 @@ export abstract class View extends ViewBase {
*/
public getSafeAreaInsets(): { left, top, right, bottom };
/**
* Transforms iOS CGRect to a position object with left, top, right and bottom.
*/
public getPositionFromFrame(frame: any): { left, top, right, bottom };
/**
* Transforms a position object with left, top, right and bottom to an iOS CGRect.
*/
public getFrameFromPosition(position: { left, top, right, bottom }, insets?: { left, top }): any;
/**
* Returns the location of this view in the window coordinate system.
*/