@evlop/native-components 1.0.175 → 1.0.176
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.
|
@@ -24,7 +24,7 @@ declare type StyledImageProps = NativeImageProps & BorderProps<Theme> & SpacePro
|
|
|
24
24
|
height?: ImageSize | number;
|
|
25
25
|
minHeight?: ImageSize | number;
|
|
26
26
|
minWidth?: ImageSize | number;
|
|
27
|
-
aspectRatio?:
|
|
27
|
+
aspectRatio?: string | number;
|
|
28
28
|
};
|
|
29
29
|
declare type BaseImageProps = Partial<StyledImageProps> & {
|
|
30
30
|
src?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Image/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA6B,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAiD,WAAW,EAA8B,UAAU,EAAU,MAAM,eAAe,CAAC;AAE3I,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;CAef,CAAC;AAEF,aAAK,SAAS,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE3C,aAAK,gBAAgB,GAAG,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG;IAClF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Image/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA6B,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAiD,WAAW,EAA8B,UAAU,EAAU,MAAM,eAAe,CAAC;AAE3I,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;CAef,CAAC;AAEF,aAAK,SAAS,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE3C,aAAK,gBAAgB,GAAG,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG;IAClF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAA;AA2CD,aAAK,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AACxF,eAAO,MAAM,SAAS;UADoC,MAAM;kBAAgB,MAAM;6BAqBrF,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAqDzC,CAAC;AAEd,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerLayout.d.ts","sourceRoot":"","sources":["../../../src/RenderPage/DrawerLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DrawerLayout.d.ts","sourceRoot":"","sources":["../../../src/RenderPage/DrawerLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,UAAU,iBAAiB;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,GAAG,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAoC5D,CAAC;AAQF,eAAe,YAAY,CAAC"}
|
|
@@ -28,6 +28,7 @@ const native_1 = require("@react-navigation/native");
|
|
|
28
28
|
const native_components_1 = require("@evlop/native-components");
|
|
29
29
|
const native_2 = require("@react-navigation/native");
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
|
+
const react_native_1 = require("react-native");
|
|
31
32
|
const DrawerLayout = ({ drawerComponentType, drawerComponentId = drawerComponentType, drawerComponentData, drawerLockMode, children }) => {
|
|
32
33
|
const navigation = (0, native_1.useNavigation)();
|
|
33
34
|
const appDrawer = (0, commons_1.useScope)("appDrawer");
|
|
@@ -56,11 +57,16 @@ const DrawerLayout = ({ drawerComponentType, drawerComponentId = drawerComponent
|
|
|
56
57
|
}, [appDrawer, drawerComponentData, drawerLockMode, isFocused]);
|
|
57
58
|
(0, react_1.useEffect)(() => {
|
|
58
59
|
navigation.setOptions({
|
|
59
|
-
headerLeft: () => react_1.default.createElement(native_components_1.View,
|
|
60
|
+
headerLeft: () => react_1.default.createElement(native_components_1.View, { style: styles.drawerButtonContainer },
|
|
60
61
|
react_1.default.createElement(native_components_1.Icon, { color: headerTintColor, onPress: appDrawer.openDrawer, icon: 'ionicons:menu-outline' })),
|
|
61
62
|
});
|
|
62
63
|
}, [navigation, headerTintColor, appDrawer]);
|
|
63
64
|
return children;
|
|
64
65
|
};
|
|
66
|
+
const styles = react_native_1.StyleSheet.create({
|
|
67
|
+
drawerButtonContainer: {
|
|
68
|
+
paddingLeft: react_native_1.Platform.select({ web: 16, default: 0 }),
|
|
69
|
+
},
|
|
70
|
+
});
|
|
65
71
|
exports.default = DrawerLayout;
|
|
66
72
|
//# sourceMappingURL=DrawerLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerLayout.js","sourceRoot":"","sources":["../../../src/RenderPage/DrawerLayout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoD;AACpD,qDAAyD;AACzD,gEAAsD;AACtD,qDAAwD;AACxD,+CAAyC;
|
|
1
|
+
{"version":3,"file":"DrawerLayout.js","sourceRoot":"","sources":["../../../src/RenderPage/DrawerLayout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoD;AACpD,qDAAyD;AACzD,gEAAsD;AACtD,qDAAwD;AACxD,+CAAyC;AACzC,+CAAoD;AAUpD,MAAM,YAAY,GAA+C,CAAC,EAAC,mBAAmB,EAAE,iBAAiB,GAAG,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,QAAQ,EAAC,EAAE,EAAE;IACjL,MAAM,UAAU,GAAG,IAAA,sBAAa,GAAE,CAAC;IACnC,MAAM,SAAS,GAAG,IAAA,kBAAQ,EAAC,WAAW,CAAQ,CAAC;IAC/C,MAAM,SAAS,GAAG,IAAA,qBAAY,GAAE,CAAC;IACjC,MAAM;IACJ,aAAa;IACb,MAAM,EAAE,EAAE,aAAa,EAAE,eAAe,EAAE,EAC3C,GAAG,IAAA,kBAAQ,GAAE,CAAC;IAEf,IAAA,iBAAS,EAAC,GAAE,EAAE;;QACZ,MAAM,aAAa,GAAG;YACpB,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,IAAG,CAAC,SAAS,IAAI,cAAc,KAAK,QAAQ,EAAC;YAC3C,aAAa,CAAC,QAAQ,GAAG,eAAe,CAAC;YACzC,IA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