Skip to content

Commit 6b1f911

Browse files
committed
fix: percentage unit calculation
1 parent ea5514c commit 6b1f911

File tree

1 file changed

+1
-1
lines changed
  • packages/uniwind/src/metro/processor

1 file changed

+1
-1
lines changed

packages/uniwind/src/metro/processor/units.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class Units {
4141
case 'dimension':
4242
return this.processLength(length.value)
4343
case 'percentage':
44-
return `${length.value}%`
44+
return `${length.value * 100}%`
4545
default:
4646
this.logger.error(`Unsupported length type - ${length.type}`)
4747

0 commit comments

Comments
 (0)