@brightlayer-ui/react-native-themes 7.0.1-alpha.4 → 7.0.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/shared.d.ts +1 -1
- package/dist/shared.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,16 +76,12 @@ const theme = useExtendedTheme();
|
|
|
76
76
|
</Button>
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
##
|
|
79
|
+
## Usage of useFontWeight hook in your project
|
|
80
80
|
|
|
81
|
-
When
|
|
82
|
-
|
|
83
|
-
The `fontFamily` property allows you to specify the font and its weight. By using the appropriate font family that supports the desired weight, you can achieve the desired fontWeight effect.
|
|
84
|
-
|
|
85
|
-
For example, if you want to set the fontWeight to "bold", you can use a font family that includes a bold variant, such as:
|
|
81
|
+
When the fontFamily of a Text element in your application needs to be modified, you can use the useFontWeight hook.For instance, to set the fontWeight to "bold", you can utilize the useFontWeight() hook as demonstrated below:
|
|
86
82
|
|
|
87
83
|
```tsx
|
|
88
|
-
<Text variant={'headlineLarge'} style={{
|
|
84
|
+
<Text variant={'headlineLarge'} style={{ ...fontStyleBold }}>
|
|
89
85
|
headlineLarge
|
|
90
86
|
</Text>
|
|
91
87
|
```
|
package/dist/shared.d.ts
CHANGED
package/dist/shared.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@brightlayer-ui/react-native-themes",
|
|
3
3
|
"author": "Brightlayer UI <brightlayer-ui@eaton.com>",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
|
-
"version": "7.0.1-alpha.
|
|
5
|
+
"version": "7.0.1-alpha.5",
|
|
6
6
|
"description": "React Native themes for Brightlayer UI applications",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"scripts": {
|