be-components 5.2.5 → 5.2.6
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.
- package/lib/commonjs/BettorSearch/index.js +13 -39
- package/lib/commonjs/BettorSearch/index.js.map +1 -1
- package/lib/module/BettorSearch/index.js +10 -36
- package/lib/module/BettorSearch/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/BettorSearch/index.d.ts +1 -4
- package/lib/typescript/lib/commonjs/BettorSearch/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BettorSearch/index.d.ts +2 -6
- package/lib/typescript/lib/module/BettorSearch/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/index.d.ts +1 -1
- package/lib/typescript/src/BettorSearch/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/BettorSearch/index.tsx +20 -28
|
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Components = require("../Components");
|
|
10
8
|
var _colors = _interopRequireDefault(require("../constants/colors"));
|
|
11
9
|
var _api = require("./api");
|
|
10
|
+
var _Themed = require("../Components/Themed");
|
|
11
|
+
var _Components = require("../Components");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
const BettorSearch = ({
|
|
16
16
|
init_search_value,
|
|
17
17
|
search_types,
|
|
18
|
-
container_style,
|
|
19
|
-
search_style,
|
|
20
|
-
button_style,
|
|
21
18
|
onSearchResults
|
|
22
19
|
}) => {
|
|
23
20
|
const [search, setSearch] = (0, _react.useState)({
|
|
@@ -70,60 +67,37 @@ const BettorSearch = ({
|
|
|
70
67
|
polls
|
|
71
68
|
});
|
|
72
69
|
};
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
74
|
-
style: {
|
|
75
|
-
...container_style
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
78
71
|
style: {
|
|
79
72
|
padding: 10,
|
|
80
|
-
flexDirection: 'row'
|
|
81
|
-
}
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
-
style: search_style ?? {
|
|
84
73
|
flexDirection: 'row',
|
|
85
|
-
alignItems: 'center'
|
|
86
|
-
flex: 1,
|
|
87
|
-
borderWidth: 1,
|
|
88
|
-
borderRadius: 22,
|
|
89
|
-
paddingLeft: 10,
|
|
90
|
-
marginRight: 5,
|
|
91
|
-
borderColor: _colors.default.shades.shade600
|
|
74
|
+
alignItems: 'center'
|
|
92
75
|
}
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
77
|
+
transparent: true,
|
|
94
78
|
style: {
|
|
95
|
-
padding:
|
|
79
|
+
padding: 10
|
|
96
80
|
}
|
|
97
81
|
}, /*#__PURE__*/_react.default.createElement(_Components.Icons.SearchIcon, {
|
|
98
82
|
color: _colors.default.brand.midnight,
|
|
99
83
|
size: 18
|
|
100
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
84
|
+
})), /*#__PURE__*/_react.default.createElement(_Themed.TextInput, {
|
|
85
|
+
placeholder: "Search...",
|
|
101
86
|
style: {
|
|
102
|
-
borderWidth: 0,
|
|
103
|
-
borderRadius: 0,
|
|
104
|
-
borderTopRightRadius: 22,
|
|
105
|
-
borderBottomRightRadius: 22,
|
|
106
87
|
flex: 1,
|
|
107
|
-
|
|
88
|
+
marginRight: 10
|
|
108
89
|
},
|
|
109
|
-
placeholder: "Search...",
|
|
110
90
|
placeholderTextColor: _colors.default.brand.slate,
|
|
111
91
|
value: search_value,
|
|
112
92
|
onChangeText: text => setSearch({
|
|
113
93
|
...search,
|
|
114
94
|
search_value: text
|
|
115
95
|
})
|
|
116
|
-
})
|
|
96
|
+
}), /*#__PURE__*/_react.default.createElement(_Themed.Button, {
|
|
117
97
|
title: "Search",
|
|
118
|
-
|
|
119
|
-
...button_style
|
|
120
|
-
},
|
|
121
|
-
title_color: _colors.default.shades.white,
|
|
122
|
-
backgroundColor: _colors.default.brand.electric,
|
|
123
|
-
padding: 15,
|
|
124
|
-
title_size: 14,
|
|
98
|
+
type: "action",
|
|
125
99
|
onPress: () => handleSearch()
|
|
126
|
-
}))
|
|
100
|
+
}));
|
|
127
101
|
};
|
|
128
102
|
var _default = exports.default = BettorSearch;
|
|
129
103
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_colors","_interopRequireDefault","_api","_Themed","_Components","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","BettorSearch","init_search_value","search_types","onSearchResults","search","setSearch","useState","search_value","offset","useEffect","BettorSearchApi","setEnvironment","handleSearch","value","players","events","tournaments","competitions","polls","performSearches","map","console","log","searchPlayers","searchEvents","searchTournaments","Promise","all","createElement","View","style","padding","flexDirection","alignItems","transparent","Icons","SearchIcon","color","Colors","brand","midnight","size","TextInput","placeholder","flex","marginRight","placeholderTextColor","slate","onChangeText","text","Button","title","type","onPress","_default","exports"],"sourceRoot":"../../../src","sources":["BettorSearch/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAAsC,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,C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,CAACC,KAAK,CAACQ,KAAM;IACzClC,KAAK,EAAEN,YAAa;IACpByC,YAAY,EAAGC,IAAI,IAAK5C,SAAS,CAAC;MAAE,GAAGD,MAAM;MAAEG,YAAY,EAAC0C;IAAK,CAAC;EAAE,CACvE,CAAC,eACF7E,MAAA,CAAAU,OAAA,CAAA8C,aAAA,CAAClD,OAAA,CAAAwE,MAAM;IACHC,KAAK,EAAC,QAAQ;IACdC,IAAI,EAAC,QAAQ;IACbC,OAAO,EAAEA,CAAA,KAAMzC,YAAY,CAAC;EAAE,CACjC,CACC,CAAC;AAEf,CAAC;AAAA,IAAA0C,QAAA,GAAAC,OAAA,CAAAzE,OAAA,GAEckB,YAAY","ignoreList":[]}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { Button, Icons, TextInput } from '../Components';
|
|
4
2
|
import Colors from '../constants/colors';
|
|
5
3
|
import { BettorSearchApi } from './api';
|
|
4
|
+
import { Button, TextInput, View } from '../Components/Themed';
|
|
5
|
+
import { Icons } from '../Components';
|
|
6
6
|
const BettorSearch = ({
|
|
7
7
|
init_search_value,
|
|
8
8
|
search_types,
|
|
9
|
-
container_style,
|
|
10
|
-
search_style,
|
|
11
|
-
button_style,
|
|
12
9
|
onSearchResults
|
|
13
10
|
}) => {
|
|
14
11
|
const [search, setSearch] = useState({
|
|
@@ -62,59 +59,36 @@ const BettorSearch = ({
|
|
|
62
59
|
});
|
|
63
60
|
};
|
|
64
61
|
return /*#__PURE__*/React.createElement(View, {
|
|
65
|
-
style: {
|
|
66
|
-
...container_style
|
|
67
|
-
}
|
|
68
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
69
62
|
style: {
|
|
70
63
|
padding: 10,
|
|
71
|
-
flexDirection: 'row'
|
|
72
|
-
}
|
|
73
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
74
|
-
style: search_style ?? {
|
|
75
64
|
flexDirection: 'row',
|
|
76
|
-
alignItems: 'center'
|
|
77
|
-
flex: 1,
|
|
78
|
-
borderWidth: 1,
|
|
79
|
-
borderRadius: 22,
|
|
80
|
-
paddingLeft: 10,
|
|
81
|
-
marginRight: 5,
|
|
82
|
-
borderColor: Colors.shades.shade600
|
|
65
|
+
alignItems: 'center'
|
|
83
66
|
}
|
|
84
67
|
}, /*#__PURE__*/React.createElement(View, {
|
|
68
|
+
transparent: true,
|
|
85
69
|
style: {
|
|
86
|
-
padding:
|
|
70
|
+
padding: 10
|
|
87
71
|
}
|
|
88
72
|
}, /*#__PURE__*/React.createElement(Icons.SearchIcon, {
|
|
89
73
|
color: Colors.brand.midnight,
|
|
90
74
|
size: 18
|
|
91
75
|
})), /*#__PURE__*/React.createElement(TextInput, {
|
|
76
|
+
placeholder: "Search...",
|
|
92
77
|
style: {
|
|
93
|
-
borderWidth: 0,
|
|
94
|
-
borderRadius: 0,
|
|
95
|
-
borderTopRightRadius: 22,
|
|
96
|
-
borderBottomRightRadius: 22,
|
|
97
78
|
flex: 1,
|
|
98
|
-
|
|
79
|
+
marginRight: 10
|
|
99
80
|
},
|
|
100
|
-
placeholder: "Search...",
|
|
101
81
|
placeholderTextColor: Colors.brand.slate,
|
|
102
82
|
value: search_value,
|
|
103
83
|
onChangeText: text => setSearch({
|
|
104
84
|
...search,
|
|
105
85
|
search_value: text
|
|
106
86
|
})
|
|
107
|
-
})
|
|
87
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
108
88
|
title: "Search",
|
|
109
|
-
|
|
110
|
-
...button_style
|
|
111
|
-
},
|
|
112
|
-
title_color: Colors.shades.white,
|
|
113
|
-
backgroundColor: Colors.brand.electric,
|
|
114
|
-
padding: 15,
|
|
115
|
-
title_size: 14,
|
|
89
|
+
type: "action",
|
|
116
90
|
onPress: () => handleSearch()
|
|
117
|
-
}))
|
|
91
|
+
}));
|
|
118
92
|
};
|
|
119
93
|
export default BettorSearch;
|
|
120
94
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Colors","BettorSearchApi","Button","TextInput","View","Icons","BettorSearch","init_search_value","search_types","onSearchResults","search","setSearch","search_value","offset","setEnvironment","handleSearch","value","players","events","tournaments","competitions","polls","performSearches","map","t","console","log","searchPlayers","searchEvents","searchTournaments","e","Promise","all","createElement","style","padding","flexDirection","alignItems","transparent","SearchIcon","color","brand","midnight","size","placeholder","flex","marginRight","placeholderTextColor","slate","onChangeText","text","title","type","onPress"],"sourceRoot":"../../../src","sources":["BettorSearch/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,eAAe,QAAQ,OAAO;AAEvC,SAASC,MAAM,EAAEC,SAAS,EAAEC,IAAI,QAAQ,sBAAsB;AAC9D,SAASC,KAAK,QAAQ,eAAe;AAkBrC,MAAMC,YAAY,GAAGA,CAAC;EAAEC,iBAAiB;EAAEC,YAAY;EAAEC;AAAkC,CAAC,KAAK;EAC7F,MAAM,CAAEC,MAAM,EAAEC,SAAS,CAAE,GAAGZ,QAAQ,CAAC;IACnCa,YAAY,EAAE,EAAE;IAChBC,MAAM,EAAC;EACX,CAAC,CAAC;EAEF,MAAM;IAAED,YAAY;IAAEC;EAAO,CAAC,GAAGH,MAAM;EAEvCZ,SAAS,CAAC,MAAM;IACZG,eAAe,CAACa,cAAc,CAAC,CAAC;IAChC,IAAGP,iBAAiB,EAAC;MACjBQ,YAAY,CAACR,iBAAiB,CAAC;IACnC;EACJ,CAAC,EAAC,CAACA,iBAAiB,CAAC,CAAC;EAEtB,MAAMQ,YAAY,GAAG,MAAMC,KAAa,IAAK;IACzC,IAAG,CAACA,KAAK,EAAC;MAAEA,KAAK,GAAGJ,YAAY;IAAC;IACjC,IAAIK,OAA2B,GAAG,EAAE;IACpC,IA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C,eACP9C,KAAA,CAAAoC,aAAA,CAAC9B,SAAS;IACNyC,WAAW,EAAC,WAAW;IACvBV,KAAK,EAAE;MAAEW,IAAI,EAAC,CAAC;MAAEC,WAAW,EAAC;IAAG,CAAE;IAClCC,oBAAoB,EAAE/C,MAAM,CAACyC,KAAK,CAACO,KAAM;IACzChC,KAAK,EAAEJ,YAAa;IACpBqC,YAAY,EAAGC,IAAI,IAAKvC,SAAS,CAAC;MAAE,GAAGD,MAAM;MAAEE,YAAY,EAACsC;IAAK,CAAC;EAAE,CACvE,CAAC,eACFrD,KAAA,CAAAoC,aAAA,CAAC/B,MAAM;IACHiD,KAAK,EAAC,QAAQ;IACdC,IAAI,EAAC,QAAQ;IACbC,OAAO,EAAEA,CAAA,KAAMtC,YAAY,CAAC;EAAE,CACjC,CACC,CAAC;AAEf,CAAC;AAED,eAAeT,YAAY","ignoreList":[]}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default BettorSearch;
|
|
3
|
-
declare function BettorSearch({ init_search_value, search_types,
|
|
3
|
+
declare function BettorSearch({ init_search_value, search_types, onSearchResults }: {
|
|
4
4
|
init_search_value: any;
|
|
5
5
|
search_types: any;
|
|
6
|
-
container_style: any;
|
|
7
|
-
search_style: any;
|
|
8
|
-
button_style: any;
|
|
9
6
|
onSearchResults: any;
|
|
10
7
|
}): any;
|
|
11
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/BettorSearch/index.js"],"names":[],"mappings":";;AAcA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commonjs/BettorSearch/index.js"],"names":[],"mappings":";;AAcA;;;;QAsFC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export default BettorSearch;
|
|
2
|
-
declare function BettorSearch({ init_search_value, search_types,
|
|
2
|
+
declare function BettorSearch({ init_search_value, search_types, onSearchResults }: {
|
|
3
3
|
init_search_value: any;
|
|
4
4
|
search_types: any;
|
|
5
|
-
container_style: any;
|
|
6
|
-
search_style: any;
|
|
7
|
-
button_style: any;
|
|
8
5
|
onSearchResults: any;
|
|
9
|
-
}): React.
|
|
10
|
-
import { View } from 'react-native';
|
|
6
|
+
}): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
11
7
|
import React from 'react';
|
|
12
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/BettorSearch/index.js"],"names":[],"mappings":";AAKA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/BettorSearch/index.js"],"names":[],"mappings":";AAKA;;;;kGAsFC;kBA3F0C,OAAO"}
|
|
@@ -15,6 +15,6 @@ type BettorSearchProps = {
|
|
|
15
15
|
polls: any[];
|
|
16
16
|
}) => void;
|
|
17
17
|
};
|
|
18
|
-
declare const BettorSearch: ({ init_search_value, search_types,
|
|
18
|
+
declare const BettorSearch: ({ init_search_value, search_types, onSearchResults }: BettorSearchProps) => React.JSX.Element;
|
|
19
19
|
export default BettorSearch;
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/BettorSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/BettorSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI/E,KAAK,iBAAiB,GAAG;IACrB,YAAY,EAAC,MAAM,EAAE,CAAC;IACtB,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAC,GAAG,CAAC;IACrB,YAAY,CAAC,EAAC,GAAG,CAAC;IAClB,YAAY,CAAC,EAAC,GAAG,CAAC;IAClB,eAAe,EAAC,CAAC,OAAO,EAAE;QACtB,MAAM,EAAC,MAAM,CAAC;QACd,OAAO,EAAC,iBAAiB,EAAE,CAAC;QAC5B,MAAM,EAAC,UAAU,EAAE,CAAC;QACpB,WAAW,EAAC,eAAe,EAAE,CAAA;QAC7B,YAAY,EAAC,GAAG,EAAE,CAAC;QACnB,KAAK,EAAE,GAAG,EAAE,CAAA;KACf,KAAK,IAAI,CAAC;CACd,CAAA;AAED,QAAA,MAAM,YAAY,GAAI,sDAAqD,iBAAiB,sBAwE3F,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { Button, Icons, TextInput } from '../Components';
|
|
4
2
|
import Colors from '../constants/colors';
|
|
5
3
|
import { BettorSearchApi } from './api';
|
|
6
4
|
import type { EventProps, PublicPlayerProps, TournamentProps } from '../types';
|
|
5
|
+
import { Button, TextInput, View } from '../Components/Themed';
|
|
6
|
+
import { Icons } from '../Components';
|
|
7
7
|
|
|
8
8
|
type BettorSearchProps = {
|
|
9
9
|
search_types:string[],
|
|
@@ -21,7 +21,7 @@ type BettorSearchProps = {
|
|
|
21
21
|
}) => void,
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const BettorSearch = ({ init_search_value, search_types,
|
|
24
|
+
const BettorSearch = ({ init_search_value, search_types, onSearchResults }:BettorSearchProps) => {
|
|
25
25
|
const [ search, setSearch ] = useState({
|
|
26
26
|
search_value: '',
|
|
27
27
|
offset:0
|
|
@@ -72,33 +72,25 @@ const BettorSearch = ({ init_search_value, search_types, container_style, search
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
return (
|
|
75
|
-
<View style={{
|
|
76
|
-
<View style={{ padding:10
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
color={Colors.brand.midnight}
|
|
81
|
-
size={18}
|
|
82
|
-
/>
|
|
83
|
-
</View>
|
|
84
|
-
<TextInput
|
|
85
|
-
style={{ borderWidth:0, borderRadius:0, borderTopRightRadius:22, borderBottomRightRadius:22, flex:1, fontSize:14 }}
|
|
86
|
-
placeholder='Search...'
|
|
87
|
-
placeholderTextColor={Colors.brand.slate}
|
|
88
|
-
value={search_value}
|
|
89
|
-
onChangeText={(text) => setSearch({ ...search, search_value:text })}
|
|
90
|
-
/>
|
|
91
|
-
</View>
|
|
92
|
-
<Button
|
|
93
|
-
title='Search'
|
|
94
|
-
style={{ ...button_style }}
|
|
95
|
-
title_color={Colors.shades.white}
|
|
96
|
-
backgroundColor={Colors.brand.electric}
|
|
97
|
-
padding={15}
|
|
98
|
-
title_size={14}
|
|
99
|
-
onPress={() => handleSearch()}
|
|
75
|
+
<View style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
76
|
+
<View transparent style={{ padding:10 }}>
|
|
77
|
+
<Icons.SearchIcon
|
|
78
|
+
color={Colors.brand.midnight}
|
|
79
|
+
size={18}
|
|
100
80
|
/>
|
|
101
81
|
</View>
|
|
82
|
+
<TextInput
|
|
83
|
+
placeholder='Search...'
|
|
84
|
+
style={{ flex:1, marginRight:10 }}
|
|
85
|
+
placeholderTextColor={Colors.brand.slate}
|
|
86
|
+
value={search_value}
|
|
87
|
+
onChangeText={(text) => setSearch({ ...search, search_value:text })}
|
|
88
|
+
/>
|
|
89
|
+
<Button
|
|
90
|
+
title='Search'
|
|
91
|
+
type='action'
|
|
92
|
+
onPress={() => handleSearch()}
|
|
93
|
+
/>
|
|
102
94
|
</View>
|
|
103
95
|
)
|
|
104
96
|
}
|