We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58022fc commit 77f2237Copy full SHA for 77f2237
package/src/utils/utils.ts
@@ -543,6 +543,7 @@ export const getUrlWithoutParams = (url?: string) => {
543
544
return url.substring(0, url.indexOf('?'));
545
};
546
+
547
export const vw = (percentageWidth: number, rounded = false) => {
548
const value = Dimensions.get('window').width * (percentageWidth / 100);
549
return rounded ? Math.round(value) : value;
0 commit comments