koylu-vampir-design 1.0.38 → 1.0.39
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ImageSourcePropType, ViewProps } from "react-native";
|
|
3
3
|
declare type Props = {
|
|
4
|
-
gold?: number;
|
|
5
|
-
diamond?: number;
|
|
6
|
-
ticket?: number;
|
|
7
|
-
gifts?: number;
|
|
4
|
+
gold?: number | string;
|
|
5
|
+
diamond?: number | string;
|
|
6
|
+
ticket?: number | string;
|
|
7
|
+
gifts?: number | string;
|
|
8
8
|
style: any;
|
|
9
9
|
goldIcon?: ImageSourcePropType;
|
|
10
10
|
diamondIcon?: ImageSourcePropType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAGnB,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAGnB,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,SAAS,CAyDlD,CAAC"}
|
|
@@ -15,6 +15,8 @@ declare type Props = {
|
|
|
15
15
|
edgeSize?: number;
|
|
16
16
|
onAccept?: (any: any) => void;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
|
+
splitBackground?: ImageSourcePropType;
|
|
19
|
+
contentStyle?: StyleProp<any>;
|
|
18
20
|
renderHeader?: React.Component | React.FC | string | number;
|
|
19
21
|
};
|
|
20
22
|
export declare const SplitScreen: React.FC<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitScreen.d.ts","sourceRoot":"","sources":["../../src/Screens/SplitScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAEnB,SAAS,EAGV,MAAM,cAAc,CAAC;AAMtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CA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E,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,YAAY,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuFvC,CAAC"}
|
|
@@ -10,14 +10,14 @@ const react_native_safe_area_context_1 = require("react-native-safe-area-context
|
|
|
10
10
|
const Themes_1 = require("../Themes");
|
|
11
11
|
const Utils_1 = require("../Utils");
|
|
12
12
|
const ScreenBase_1 = require("./ScreenBase");
|
|
13
|
-
const SplitScreen = ({ children, style, icon, title, transparent, onBack, background, scrollable, onAccept, noPaddings, renderHeader, acceptText, splitSize, noScrollView, edgeSize, }) => {
|
|
13
|
+
const SplitScreen = ({ children, style, icon, title, transparent, onBack, background, scrollable, onAccept, noPaddings, renderHeader, acceptText, splitSize, noScrollView, splitBackground, contentStyle, edgeSize, }) => {
|
|
14
14
|
const { dimBackgroundColor } = Themes_1.useColors();
|
|
15
15
|
const insets = react_native_safe_area_context_1.useSafeAreaInsets();
|
|
16
16
|
const splitHeight = splitSize || 256;
|
|
17
17
|
const edgeHeight = edgeSize || 64;
|
|
18
18
|
const childArray = react_1.default.Children.toArray(children);
|
|
19
19
|
const firstChild = childArray.shift();
|
|
20
|
-
const mainBg = Utils_1.Assets.getSource("image", "generalScreenDarkBackground");
|
|
20
|
+
const mainBg = splitBackground || Utils_1.Assets.getSource("image", "generalScreenDarkBackground");
|
|
21
21
|
return (react_1.default.createElement(ScreenBase_1.ScreenBase, Object.assign({}, {
|
|
22
22
|
icon,
|
|
23
23
|
title,
|
|
@@ -38,7 +38,7 @@ const SplitScreen = ({ children, style, icon, title, transparent, onBack, backgr
|
|
|
38
38
|
backgroundColor: dimBackgroundColor,
|
|
39
39
|
},
|
|
40
40
|
] }, firstChild),
|
|
41
|
-
react_1.default.createElement(react_native_1.View, { style: [styles.bottomArea, { marginTop: -edgeHeight }] },
|
|
41
|
+
react_1.default.createElement(react_native_1.View, { style: [styles.bottomArea, { marginTop: -edgeHeight }, contentStyle] },
|
|
42
42
|
react_1.default.createElement(react_native_1.ImageBackground, { source: mainBg, imageStyle: styles.scrollBackImage, style: [
|
|
43
43
|
styles.scrollBack,
|
|
44
44
|
{
|