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
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).
To change the theme you can call build method and it will swap the theme
112
112
113
113
```javascript
114
-
importReactfrom'react';
115
-
import { View, Button } from'react-native';
116
-
import { StyleSheet, light, dark } from'./style';
114
+
importReactfrom"react";
115
+
import { View, Button } from"react-native";
116
+
import { StyleSheet, light, dark } from"./style";
117
117
118
118
constComponent= () => {
119
119
constonLight= () =>StyleSheet.build(light);
@@ -133,24 +133,23 @@ const Component = () => {
133
133
Scan and run with expo go app, run the [example project](https://github.com/mohit23x/react-native-sugar-style/tree/main/example) for a more detailed example.
134
134
https://expo.io/@mohit23x/projects/react-native-sugar-style or try the [react native web version](https://sugar-style.netlify.app/)
0 commit comments