You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-19Lines changed: 24 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,19 @@ npm i react-native-sugar-style
20
20
21
21
STEP 1: **style.tsx**
22
22
23
-
Define configurations for your themesee [this file](https://github.com/mohit23x/react-native-sugar-style/blob/main/example/style/index.tsx) for a more verbose example
23
+
Define configurations for your theme, for more verbose example see [this file](https://github.com/mohit23x/react-native-sugar-style/blob/main/example/style/index.tsx).
> **NOTE**: if you have a single theme then `useTheme()` hook can be avoided, also if you add `useTheme()` in you navigation screen parent component, then you can avoid using it in child components\*
97
+
> **NOTE**: if you add `useTheme()` in the navigation screen (parent component), then you can avoid using it in child components\*
93
98
94
99
<br />
95
100
96
-
STEP 4: **anotherComponent.tsx** (optional)
101
+
STEP 4: **anotherComponent.tsx**
97
102
98
103
To change the theme you can call build method and it will swap the theme
0 commit comments