Skip to content

Commit ea5514c

Browse files
committed
feat: support percentage length type in units
1 parent c806b9d commit ea5514c

File tree

1 file changed

+2
-0
lines changed
  • packages/uniwind/src/metro/processor

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class Units {
4040
case 'value':
4141
case 'dimension':
4242
return this.processLength(length.value)
43+
case 'percentage':
44+
return `${length.value}%`
4345
default:
4446
this.logger.error(`Unsupported length type - ${length.type}`)
4547

0 commit comments

Comments
 (0)