Quellcode durchsuchen

Bugfix: General lint problems fixed.

lfabl vor 2 Wochen
Ursprung
Commit
4a4a0f9438

+ 6 - 0
.agents/AGENTS.md

@@ -32,3 +32,9 @@ Always follow these rules by default. Pay "extreme attention" (aşırı dikkat)
 - NEVER use `multi_replace_file_content` or attempt to edit multiple files in a single pass. The user explicitly bans batch operations ("Toplu işlemi yasaklıyorum").
 - NEVER use `multi_replace_file_content` or attempt to edit multiple files in a single pass. The user explicitly bans batch operations ("Toplu işlemi yasaklıyorum").
 - Any fix or change MUST be done one-by-one, meticulously.
 - Any fix or change MUST be done one-by-one, meticulously.
 - Before applying any change to a file, verify the exact location, context, and potential side effects from at least 3 different angles (e.g., check exact lines using view_file, consider how the component uses the prop, and anticipate how the linter will react).
 - Before applying any change to a file, verify the exact location, context, and potential side effects from at least 3 different angles (e.g., check exact lines using view_file, consider how the component uses the prop, and anticipate how the linter will react).
+
+## Semantic Naming for Styles
+- When defining styles in `stylesheet.ts`, you MUST use semantic naming based on the object or component being styled, NOT based on the style values.
+- **Incorrect:** `flex1`, `fullWidth`, `transparentBackground`
+- **Correct:** `container`, `content`, `titleContainer`, `title`, `emptyCheckIcon`
+- For example: The outermost `<View>` in a component is usually `container`. A wrapper for content is `contentContainer`. A view wrapping a title is `titleContainer`. Always look at the semantic purpose of the element in the UI hierarchy.

+ 1 - 1
babel.config.js

@@ -12,5 +12,5 @@ module.exports = {
             ],
             ],
             include: /\/node_modules\//
             include: /\/node_modules\//
         }
         }
-    ],
+    ]
 };
 };

+ 7 - 3
src/assets/svg/enUSIcon/index.tsx

@@ -8,6 +8,12 @@ import {
     G
     G
 } from "react-native-svg";
 } from "react-native-svg";
 
 
+const stylesheet = {
+    mask: {
+        maskType: "luminance" as const
+    }
+};
+
 const EnUsIcon = ({
 const EnUsIcon = ({
     size = 32,
     size = 32,
     style,
     style,
@@ -30,9 +36,7 @@ const EnUsIcon = ({
             width={32}
             width={32}
             x={0}
             x={0}
             y={0}
             y={0}
-            style={{
-                maskType: "luminance"
-            }}
+            style={stylesheet.mask}
         >
         >
             <Path
             <Path
                 fill="#fff"
                 fill="#fff"

+ 2 - 2
src/components/button/index.tsx

@@ -64,11 +64,11 @@ const Button: FC<IButtonProps> = ({
     });
     });
 
 
     const currentVariant = getButtonVariant({
     const currentVariant = getButtonVariant({
-        variant,
+        variant
     });
     });
 
 
     const currentType = getButtonType({
     const currentType = getButtonType({
-        type,
+        type
     });
     });
 
 
     const {
     const {

+ 25 - 30
src/components/checkBox/index.tsx

@@ -86,11 +86,11 @@ const CheckBox: FC<ICheckBoxProps> = ({
     });
     });
 
 
     const titleProps: ITextProps = {
     const titleProps: ITextProps = {
-        color: currentType.titleColor,
+        color: currentType.titleColor
     };
     };
 
 
     const subTitleProps: ITextProps = {
     const subTitleProps: ITextProps = {
-        color: currentType.subTitleColor,
+        color: currentType.subTitleColor
     };
     };
 
 
     const indicatorIconProps: {
     const indicatorIconProps: {
@@ -159,10 +159,7 @@ const CheckBox: FC<ICheckBoxProps> = ({
     const renderCheckIcon = () => {
     const renderCheckIcon = () => {
         if(!isChecked) {
         if(!isChecked) {
             return <View
             return <View
-                style={{
-                    height: 16,
-                    width: 16
-                }}
+                style={stylesheet.emptyIcon}
             />;
             />;
         }
         }
 
 
@@ -244,31 +241,29 @@ const CheckBox: FC<ICheckBoxProps> = ({
         </View>;
         </View>;
     };
     };
 
 
-    return (
-        <TouchableOpacity
-            {...props}
-            onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
-            disabled={isDisabled || isLoading || !onPress}
-            style={[
-                style,
-                stylesheet.container,
-                containerDynamicStyle
-            ]}
-            {...Platform.select({
-                web: {
-                    dataSet: {
-                        disablePressableDownEffect: "true"
-                    }
-                },
-                default: {}
-            })}
-        >
-            {isFlip ? null : renderCheckIndicator()}
+    return <TouchableOpacity
+        {...props}
+        onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
+        disabled={isDisabled || isLoading || !onPress}
+        style={[
+            style,
+            stylesheet.container,
+            containerDynamicStyle
+        ]}
+        {...Platform.select({
+            web: {
+                dataSet: {
+                    disablePressableDownEffect: "true"
+                }
+            },
+            default: {}
+        })}
+    >
+        {isFlip ? null : renderCheckIndicator()}
 
 
-            {renderContent()}
+        {renderContent()}
 
 
-            {isFlip ? renderCheckIndicator() : null}
-        </TouchableOpacity>
-    );
+        {isFlip ? renderCheckIndicator() : null}
+    </TouchableOpacity>;
 };
 };
 export default CheckBox;
 export default CheckBox;

+ 4 - 0
src/components/checkBox/stylesheet.ts

@@ -112,6 +112,10 @@ const stylesheet = StyleSheet.create({
         right: -2,
         right: -2,
         left: -2,
         left: -2,
         top: -2
         top: -2
+    },
+    emptyIcon: {
+        height: 16,
+        width: 16
     }
     }
 });
 });
 
 

+ 67 - 72
src/components/codeViewer/index.tsx

@@ -172,90 +172,85 @@ const CodeViewer = ({
         }
         }
     };
     };
 
 
-    return (
-        <View
-            ref={containerRef}
+    return <View
+        ref={containerRef}
+        style={[
+            stylesheet.container,
+            containerDynamicStyle
+        ]}
+    >
+        <ScrollView
+            contentContainerStyle={stylesheet.scrollContent}
+            showsHorizontalScrollIndicator={true}
+            horizontal={true}
             style={[
             style={[
-                stylesheet.container,
-                containerDynamicStyle
+                stylesheet.scrollView,
+                {
+                    paddingVertical: spaces.spacingSm
+                }
             ]}
             ]}
         >
         >
-            <ScrollView
-                contentContainerStyle={stylesheet.scrollContent}
-                showsHorizontalScrollIndicator={true}
-                horizontal={true}
-                style={{
-                    paddingVertical: spaces.spacingSm,
-                    flex: 1
-                }}
+            <Text
+                style={[
+                    stylesheet.content,
+                    textDynamicStyle
+                ]}
             >
             >
-                <Text
-                    style={[
-                        stylesheet.content,
-                        textDynamicStyle
-                    ]}
+                {language ? <Text
+                    color="low"
                 >
                 >
-                    {language ? <Text
-                        color="low"
+                    // {language}{"\n\n"}
+                </Text> : null}
+                {tokens.map((token, index) => {
+                    return <NativeText
+                        key={`code-token-${index}`}
+                        style={{
+                            fontFamily: Platform.OS === "web" ? "monospace" : "System",
+                            color: getTokenColor(token.type)
+                        }}
                     >
                     >
-                        // {language}{"\n\n"}
-                    </Text> : null}
-                    {tokens.map((token, index) => {
-                        return (
-                            <NativeText
-                                key={`code-token-${index}`}
-                                style={{
-                                    fontFamily: Platform.OS === "web" ? "monospace" : "System",
-                                    color: getTokenColor(token.type)
-                                }}
-                            >
-                                {token.value}
-                            </NativeText>
-                        );
-                    })}
-                </Text>
-            </ScrollView>
-            <View
-                style={{
+                        {token.value}
+                    </NativeText>;
+                })}
+            </Text>
+        </ScrollView>
+        <View
+            style={[
+                stylesheet.stickyActionContainer,
+                {
                     transform: [
                     transform: [
                         {
                         {
                             translateY: stickyTop
                             translateY: stickyTop
                         }
                         }
                     ],
                     ],
-                    marginLeft: spaces.spacingMd,
-                    alignSelf: "flex-start",
-                    zIndex: 1
+                    marginLeft: spaces.spacingMd
+                }
+            ]}
+        >
+            <Button
+                spreadBehaviour="free"
+                icon={({
+                    color,
+                    size
+                }) => {
+                    if (isCopied) {
+                        return <CheckIcon
+                            color={colors.content.icon.success}
+                            size={size + 5}
+                        />;
+                    }
+
+                    return <CopyIcon
+                        color={colors.content.icon[color]}
+                        size={size + 5}
+                    />;
                 }}
                 }}
-            >
-                <Button
-                    spreadBehaviour="free"
-                    icon={({
-                        color,
-                        size
-                    }) => {
-                        if (isCopied) {
-                            return (
-                                <CheckIcon
-                                    color={colors.content.icon.success}
-                                    size={size + 5}
-                                />
-                            );
-                        }
-
-                        return (
-                            <CopyIcon
-                                color={colors.content.icon[color]}
-                                size={size + 5}
-                            />
-                        );
-                    }}
-                    onPress={handleCopyCode}
-                    variant="ghost"
-                    type="neutral"
-                    size="small"
-                />
-            </View>
+                onPress={handleCopyCode}
+                variant="ghost"
+                type="neutral"
+                size="small"
+            />
         </View>
         </View>
-    );
+    </View>;
 };
 };
 export default CodeViewer;
 export default CodeViewer;

+ 7 - 0
src/components/codeViewer/stylesheet.ts

@@ -22,6 +22,13 @@ const stylesheet = StyleSheet.create({
     scrollContent: {
     scrollContent: {
         flexGrow: 1
         flexGrow: 1
     },
     },
+    scrollView: {
+        flex: 1
+    },
+    stickyActionContainer: {
+        alignSelf: "flex-start",
+        zIndex: 1
+    },
     content: {
     content: {
         fontFamily: Platform.OS === "web" ? "monospace" : "System",
         fontFamily: Platform.OS === "web" ? "monospace" : "System",
         ...webStyle({
         ...webStyle({

+ 7 - 7
src/components/embeddedMenu/index.tsx

@@ -339,9 +339,7 @@ const Menu: RefForwardingComponent<IEmbeddedMenuRef, IEmbeddedMenuProps> = ({
                         siteLogoDynamicStyle
                         siteLogoDynamicStyle
                     ]}
                     ]}
                 /> : <View
                 /> : <View
-                    style={{
-                        flex: 1
-                    }}
+                    style={stylesheet.emptyLogo}
                 />}
                 />}
                 {renderToggleCollapseForExpended()}
                 {renderToggleCollapseForExpended()}
             </View>
             </View>
@@ -395,10 +393,12 @@ const Menu: RefForwardingComponent<IEmbeddedMenuRef, IEmbeddedMenuProps> = ({
         if(!isWorkWithSafeAreaView) {
         if(!isWorkWithSafeAreaView) {
             return <Fragment>
             return <Fragment>
                 {isWorkWithHeaderSpace && (configs.headerSpace || headerSpace) ? <View
                 {isWorkWithHeaderSpace && (configs.headerSpace || headerSpace) ? <View
-                    style={{
-                        height: headerSpace ? headerSpace : configs.headerSpace,
-                        width: "100%"
-                    }}
+                    style={[
+                        stylesheet.headerSpacer,
+                        {
+                            height: headerSpace ? headerSpace : configs.headerSpace
+                        }
+                    ]}
                 /> : null}
                 /> : null}
                 {renderHeader()}
                 {renderHeader()}
                 <ScrollView
                 <ScrollView

+ 6 - 0
src/components/embeddedMenu/stylesheet.ts

@@ -13,6 +13,12 @@ import {
 } from "../../utils";
 } from "../../utils";
 
 
 const stylesheet = StyleSheet.create({
 const stylesheet = StyleSheet.create({
+    emptyLogo: {
+        flex: 1
+    },
+    headerSpacer: {
+        width: "100%"
+    },
     container: {
     container: {
         flexDirection: "column",
         flexDirection: "column",
         display: "flex",
         display: "flex",

+ 12 - 8
src/components/header/index.tsx

@@ -216,10 +216,12 @@ const Header = <T extends NavigationType>({
             ]}
             ]}
         >
         >
             {<View
             {<View
-                style={{
-                    width: sideWidth,
-                    height: 40
-                }}
+                style={[
+                    stylesheet.sideSpacer,
+                    {
+                        width: sideWidth
+                    }
+                ]}
             />}
             />}
             <Text
             <Text
                 variant="headlineSmallSize"
                 variant="headlineSmallSize"
@@ -233,10 +235,12 @@ const Header = <T extends NavigationType>({
                 {title}
                 {title}
             </Text>
             </Text>
             {<View
             {<View
-                style={{
-                    width: sideWidth,
-                    height: 40
-                }}
+                style={[
+                    stylesheet.sideSpacer,
+                    {
+                        width: sideWidth
+                    }
+                ]}
             />}
             />}
         </View>;
         </View>;
     };
     };

+ 3 - 0
src/components/header/stylesheet.ts

@@ -27,6 +27,9 @@ const stylesheet = StyleSheet.create({
             userSelect: "none"
             userSelect: "none"
         })
         })
     },
     },
+    sideSpacer: {
+        height: 40
+    },
     safeAreaViewContainer: {
     safeAreaViewContainer: {
     },
     },
     titleContainer: {
     titleContainer: {

+ 1 - 1
src/components/highlightButton/index.tsx

@@ -62,7 +62,7 @@ const HighlightButton: FC<IHighlightButtonProps> = ({
     });
     });
 
 
     const currentType = getHighlightButtonType({
     const currentType = getHighlightButtonType({
-        type,
+        type
     });
     });
 
 
     const {
     const {

+ 7 - 5
src/components/mainHeader/index.tsx

@@ -159,11 +159,13 @@ const MainHeader = ({
         >
         >
             {isWorkWithSafeAreaView ? renderSafeAreaView() : renderContentContainer()}
             {isWorkWithSafeAreaView ? renderSafeAreaView() : renderContentContainer()}
             {isWorkWithSticky && isWorkWithStickySpace ? <View
             {isWorkWithSticky && isWorkWithStickySpace ? <View
-                style={{
-                    backgroundColor: customBackgroundColor ? colors.project[customBackgroundColor] : colors.content.container[backgroundColor],
-                    height: contentHeight,
-                    width: "100%"
-                }}
+                style={[
+                    stylesheet.stickySpacer,
+                    {
+                        backgroundColor: customBackgroundColor ? colors.project[customBackgroundColor] : colors.content.container[backgroundColor],
+                        height: contentHeight
+                    }
+                ]}
             /> : null}
             /> : null}
             {children}
             {children}
         </View>;
         </View>;

+ 3 - 0
src/components/mainHeader/stylesheet.ts

@@ -21,6 +21,9 @@ const stylesheet = StyleSheet.create({
     baseContainer: {
     baseContainer: {
         flexDirection: "column",
         flexDirection: "column",
         flex: 1
         flex: 1
+    },
+    stickySpacer: {
+        width: "100%"
     }
     }
 });
 });
 
 

+ 25 - 29
src/components/radioButton/index.tsx

@@ -86,11 +86,11 @@ const RadioButton: FC<IRadioButtonProps> = ({
     });
     });
 
 
     const titleProps: ITextProps = {
     const titleProps: ITextProps = {
-        color: currentType.titleColor,
+        color: currentType.titleColor
     };
     };
 
 
     const subTitleProps: ITextProps = {
     const subTitleProps: ITextProps = {
-        color: currentType.subTitleColor,
+        color: currentType.subTitleColor
     };
     };
 
 
     const indicatorIconProps: {
     const indicatorIconProps: {
@@ -161,9 +161,7 @@ const RadioButton: FC<IRadioButtonProps> = ({
             return <View
             return <View
                 style={[
                 style={[
                     indicatorDynamicStyle,
                     indicatorDynamicStyle,
-                    {
-                        backgroundColor: "transparent"
-                    }
+                    stylesheet.emptyIndicator
                 ]}
                 ]}
             />;
             />;
         }
         }
@@ -239,31 +237,29 @@ const RadioButton: FC<IRadioButtonProps> = ({
         </View>;
         </View>;
     };
     };
 
 
-    return (
-        <TouchableOpacity
-            {...props}
-            onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
-            disabled={isDisabled || isLoading || !onPress}
-            style={[
-                style,
-                stylesheet.container,
-                containerDynamicStyle
-            ]}
-            {...Platform.select({
-                web: {
-                    dataSet: {
-                        disablePressableDownEffect: "true"
-                    }
-                },
-                default: {}
-            })}
-        >
-            {isFlip ? null : renderIndicatorContainer()}
+    return <TouchableOpacity
+        {...props}
+        onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
+        disabled={isDisabled || isLoading || !onPress}
+        style={[
+            style,
+            stylesheet.container,
+            containerDynamicStyle
+        ]}
+        {...Platform.select({
+            web: {
+                dataSet: {
+                    disablePressableDownEffect: "true"
+                }
+            },
+            default: {}
+        })}
+    >
+        {isFlip ? null : renderIndicatorContainer()}
 
 
-            {renderContent()}
+        {renderContent()}
 
 
-            {isFlip ? renderIndicatorContainer() : null}
-        </TouchableOpacity>
-    );
+        {isFlip ? renderIndicatorContainer() : null}
+    </TouchableOpacity>;
 };
 };
 export default RadioButton;
 export default RadioButton;

+ 3 - 0
src/components/radioButton/stylesheet.ts

@@ -115,6 +115,9 @@ const stylesheet = StyleSheet.create({
         right: -2,
         right: -2,
         left: -2,
         left: -2,
         top: -2
         top: -2
+    },
+    emptyIndicator: {
+        backgroundColor: "transparent"
     }
     }
 });
 });
 
 

+ 4 - 15
src/components/selectSheet/index.tsx

@@ -153,8 +153,7 @@ function SelectSheet<T>({
                             stylesheet.itemContainer,
                             stylesheet.itemContainer,
                             itemContainerDynamicStyle,
                             itemContainerDynamicStyle,
                             {
                             {
-                                marginTop: index === 0 ? 0 : spaces.spacingSm,
-                                position: "relative"
+                                marginTop: index === 0 ? 0 : spaces.spacingSm
                             }
                             }
                         ]}
                         ]}
                         onPress={() => {
                         onPress={() => {
@@ -166,12 +165,7 @@ function SelectSheet<T>({
                         }}
                         }}
                     >
                     >
                         <View
                         <View
-                            style={[
-                                stylesheet.itemContentContainer,
-                                {
-                                    zIndex: 99999
-                                }
-                            ]}
+                            style={stylesheet.itemContentContainer}
                         >
                         >
                             {renderOptionIcon ? renderOptionIcon({
                             {renderOptionIcon ? renderOptionIcon({
                                 item,
                                 item,
@@ -197,15 +191,10 @@ function SelectSheet<T>({
                         </View>
                         </View>
                         {isDisabled ? <View
                         {isDisabled ? <View
                             style={[
                             style={[
+                                stylesheet.disabledOverlay,
                                 {
                                 {
                                     backgroundColor: colors.system.disabled.content,
                                     backgroundColor: colors.system.disabled.content,
-                                    borderRadius: radiuses.actions,
-                                    position: "absolute",
-                                    zIndex: 99998,
-                                    bottom: 0,
-                                    right: 0,
-                                    left: 0,
-                                    top: 0
+                                    borderRadius: radiuses.actions
                                 }
                                 }
                             ]}
                             ]}
                         /> : null}
                         /> : null}

+ 11 - 1
src/components/selectSheet/stylesheet.ts

@@ -25,11 +25,21 @@ const stylesheet = StyleSheet.create({
     },
     },
     itemContainer: {
     itemContainer: {
         flexDirection: "row",
         flexDirection: "row",
-        alignItems: "center"
+        alignItems: "center",
+        position: "relative"
     },
     },
     itemContentContainer: {
     itemContentContainer: {
+        zIndex: 99999,
         flex: 1
         flex: 1
     },
     },
+    disabledOverlay: {
+        position: "absolute",
+        zIndex: 99998,
+        bottom: 0,
+        right: 0,
+        left: 0,
+        top: 0
+    },
     checkIconContainer: {
     checkIconContainer: {
         justifyContent: "center",
         justifyContent: "center",
         alignItems: "center"
         alignItems: "center"

+ 2 - 2
src/components/siteLogo/index.tsx

@@ -206,7 +206,7 @@ const SiteLogo = ({
                 ellipsizeMode="tail"
                 ellipsizeMode="tail"
                 numberOfLines={1}
                 numberOfLines={1}
                 style={{
                 style={{
-                    width: "100%",
+                    ...stylesheet.title,
                     ...titleStyle
                     ...titleStyle
                 }}
                 }}
             >
             >
@@ -221,7 +221,7 @@ const SiteLogo = ({
                         ellipsizeMode="tail"
                         ellipsizeMode="tail"
                         numberOfLines={1}
                         numberOfLines={1}
                         style={{
                         style={{
-                            width: "100%",
+                            ...stylesheet.subTitle,
                             ...subTitleStyle
                             ...subTitleStyle
                         }}
                         }}
                     >
                     >

+ 6 - 0
src/components/siteLogo/stylesheet.ts

@@ -106,6 +106,12 @@ const stylesheet = StyleSheet.create({
         display: "flex",
         display: "flex",
         minWidth: 0,
         minWidth: 0,
         flex: 1
         flex: 1
+    },
+    title: {
+        width: "100%"
+    },
+    subTitle: {
+        width: "100%"
     }
     }
 });
 });
 
 

+ 24 - 26
src/components/switch/index.tsx

@@ -109,11 +109,11 @@ const Switch: FC<ISwitchProps> = ({
     ]);
     ]);
 
 
     const titleProps: ITextProps = {
     const titleProps: ITextProps = {
-        color: currentType.titleColor,
+        color: currentType.titleColor
     };
     };
 
 
     const subTitleProps: ITextProps = {
     const subTitleProps: ITextProps = {
-        color: currentType.subTitleColor,
+        color: currentType.subTitleColor
     };
     };
 
 
     const indicatorIconProps: {
     const indicatorIconProps: {
@@ -258,31 +258,29 @@ const Switch: FC<ISwitchProps> = ({
         </View>;
         </View>;
     };
     };
 
 
-    return (
-        <TouchableOpacity
-            {...props}
-            onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
-            disabled={isDisabled || isLoading || !onPress}
-            style={[
-                style,
-                stylesheet.container,
-                containerDynamicStyle
-            ]}
-            {...Platform.select({
-                web: {
-                    dataSet: {
-                        disablePressableDownEffect: "true"
-                    }
-                },
-                default: {}
-            })}
-        >
-            {isFlip ? null : renderIndicatorContainer()}
+    return <TouchableOpacity
+        {...props}
+        onPress={isDisabled || isLoading ? () => null : onPress ? onPress : undefined}
+        disabled={isDisabled || isLoading || !onPress}
+        style={[
+            style,
+            stylesheet.container,
+            containerDynamicStyle
+        ]}
+        {...Platform.select({
+            web: {
+                dataSet: {
+                    disablePressableDownEffect: "true"
+                }
+            },
+            default: {}
+        })}
+    >
+        {isFlip ? null : renderIndicatorContainer()}
 
 
-            {renderContent()}
+        {renderContent()}
 
 
-            {isFlip ? renderIndicatorContainer() : null}
-        </TouchableOpacity>
-    );
+        {isFlip ? renderIndicatorContainer() : null}
+    </TouchableOpacity>;
 };
 };
 export default Switch;
 export default Switch;

+ 9 - 6
src/context/embeddedMenu.tsx

@@ -2,6 +2,7 @@ import {
     type ReactNode
     type ReactNode
 } from "react";
 } from "react";
 import {
 import {
+    StyleSheet,
     View
     View
 } from "react-native";
 } from "react-native";
 import {
 import {
@@ -16,6 +17,13 @@ import {
     uuid
     uuid
 } from "../utils";
 } from "../utils";
 
 
+const stylesheet = StyleSheet.create({
+    wrapper: {
+        flexDirection: "row",
+        flex: 1
+    }
+});
+
 class NCoreUIKitEmbeddedMenu extends NCoreContext<EmbeddedMenuContextType, ConfigType<EmbeddedMenuContextType>> {
 class NCoreUIKitEmbeddedMenu extends NCoreContext<EmbeddedMenuContextType, ConfigType<EmbeddedMenuContextType>> {
     constructor({
     constructor({
         data = []
         data = []
@@ -267,12 +275,7 @@ class NCoreUIKitEmbeddedMenu extends NCoreContext<EmbeddedMenuContextType, Confi
 
 
             if(children) {
             if(children) {
                 return <View
                 return <View
-                    style={[
-                        {
-                            flexDirection: "row",
-                            flex: 1
-                        }
-                    ]}
+                    style={stylesheet.wrapper}
                 >
                 >
                     {renderMenu({
                     {renderMenu({
                         currentMenu
                         currentMenu

+ 0 - 4
src/context/localize.tsx

@@ -91,11 +91,9 @@ class NCoreUIKitLocalize<T extends LocalizeType> extends NCoreContext<LocalizeCo
         const defaultState: LocalizeContextStateType = {
         const defaultState: LocalizeContextStateType = {
             localeKeys: defaultLocalesData.map(lDI => lDI.locale) as Array<keyof NCoreUIKit.LocaleKey>,
             localeKeys: defaultLocalesData.map(lDI => lDI.locale) as Array<keyof NCoreUIKit.LocaleKey>,
             activeLocale: defaultLocale.locale as keyof NCoreUIKit.LocaleKey,
             activeLocale: defaultLocale.locale as keyof NCoreUIKit.LocaleKey,
-            // localizeWithObject: this.localizeWithObject,
             translations: defaultLocale.translations,
             translations: defaultLocale.translations,
             rruleConfig: defaultLocale.rruleConfig,
             rruleConfig: defaultLocale.rruleConfig,
             isRTL: defaultLocale.isRTL
             isRTL: defaultLocale.isRTL
-            // localize: this.localize
         };
         };
 
 
         if(!this.projectLocales || (this.projectLocales && !this.projectLocales.length)) {
         if(!this.projectLocales || (this.projectLocales && !this.projectLocales.length)) {
@@ -118,13 +116,11 @@ class NCoreUIKitLocalize<T extends LocalizeType> extends NCoreContext<LocalizeCo
         const newState: LocalizeContextStateType = {
         const newState: LocalizeContextStateType = {
             activeLocale: currentProjectLocale.locale as keyof NCoreUIKit.LocaleKey,
             activeLocale: currentProjectLocale.locale as keyof NCoreUIKit.LocaleKey,
             localeKeys: dLKeys as Array<keyof NCoreUIKit.LocaleKey>,
             localeKeys: dLKeys as Array<keyof NCoreUIKit.LocaleKey>,
-            // localizeWithObject: this.localizeWithObject,
             rruleConfig: {
             rruleConfig: {
                 ...defaultLocale.rruleConfig,
                 ...defaultLocale.rruleConfig,
                 ...currentProjectLocale.rruleConfig
                 ...currentProjectLocale.rruleConfig
             },
             },
             isRTL: currentProjectLocale.isRTL,
             isRTL: currentProjectLocale.isRTL,
-            // localize: this.localize,
             translations: {
             translations: {
                 ...defaultLocale.translations,
                 ...defaultLocale.translations,
                 ...currentProjectLocale.translations
                 ...currentProjectLocale.translations