@nguyentc21/react-native-tooltip
Version:
Simple tooltip for React native app
27 lines (26 loc) • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getLimitScreenPosition = void 0;
const getLimitScreenPosition = args => {
const {
dimension
} = args;
const {
width,
height
} = dimension;
return {
minTop: 0,
minBottom: 0,
minLeft: 0,
minRight: 0,
maxTop: height,
maxBottom: height,
maxLeft: width,
maxRight: width
};
};
exports.getLimitScreenPosition = getLimitScreenPosition;
//# sourceMappingURL=index.js.map