-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-native): border widths in the theme don't throw runtime err…
…ors (#4227)
- Loading branch information
1 parent
ea008e3
commit d3ee054
Showing
5 changed files
with
120 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
"@aws-amplify/ui-react-native": patch | ||
"@aws-amplify/ui-react": patch | ||
"@aws-amplify/ui": patch | ||
--- | ||
|
||
fix(react-native): border widths, spacing, font sizes, opacities in the theme don't throw runtime errors. | ||
|
||
These are all valid in a theme now: | ||
|
||
```typescript | ||
const theme: Theme = { | ||
tokens: { | ||
borderWidths: { | ||
small: '4', | ||
medium: '1rem', | ||
large: 6, | ||
}, | ||
opacities: { | ||
'10': '0.2', | ||
}, | ||
space: { | ||
small: 4, | ||
medium: '6', | ||
large: '{space.small.value}', | ||
}, | ||
fontSizes: { | ||
small: '1rem', | ||
}, | ||
}, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters