Procházet zdrojové kódy

Feature: Example project stabilization provided.

lfabl před 3 měsíci
rodič
revize
919c8ebc7a
1 změnil soubory, kde provedl 17 přidání a 5 odebrání
  1. 17 5
      example/src/index.tsx

+ 17 - 5
example/src/index.tsx

@@ -2,21 +2,33 @@ import {
     StyleSheet,
     View
 } from "react-native";
-import {
-    useFonts
-} from "expo-font";
 import {
     setupNCoreUIKit,
+    NCoreUIKitTheme,
     Text
 } from "ncore-ui-kit-mobile";
+import {
+    useFonts
+} from "expo-font";
 
 const NCoreUIKitBase = setupNCoreUIKit({
     initialSelectedGapPropagation: "compact",
-    initialSelectedTheme: "light"
+    initialSelectedTheme: "dark"
 });
 
 const App = () => {
-    return <View style={styles.container}>
+    const {
+        colors
+    } = NCoreUIKitTheme.useContext();
+
+    return <View
+        style={[
+            styles.container,
+            {
+                backgroundColor: colors.content.container.default
+            }
+        ]}
+    >
         <Text>Result: </Text>
     </View>;
 };