@tecsinapse/react-native-kit 3.5.15-beta.5 → 3.5.15-beta.7
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.
|
@@ -32,10 +32,12 @@ function BottomNavigator({
|
|
|
32
32
|
...rest
|
|
33
33
|
}) {
|
|
34
34
|
return /* @__PURE__ */ jsxRuntime.jsx(styled.StyledView, { ...rest, children: React__namespace.Children.map(children, (child) => {
|
|
35
|
-
|
|
36
|
-
const
|
|
35
|
+
if (!React__namespace.isValidElement(child)) return null;
|
|
36
|
+
const item = child;
|
|
37
|
+
const { value, label, labelProps, labelElement } = item.props;
|
|
38
|
+
const isSelected = value === selected;
|
|
37
39
|
return /* @__PURE__ */ jsxRuntime.jsxs(styled.TabContainer, { selected: isSelected, onPress: () => onSelect(value), children: [
|
|
38
|
-
React__namespace.cloneElement(
|
|
40
|
+
React__namespace.cloneElement(item, {
|
|
39
41
|
_selected: isSelected
|
|
40
42
|
}),
|
|
41
43
|
label && !labelElement && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11,10 +11,12 @@ function BottomNavigator({
|
|
|
11
11
|
...rest
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ jsx(StyledView, { ...rest, children: React.Children.map(children, (child) => {
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
if (!React.isValidElement(child)) return null;
|
|
15
|
+
const item = child;
|
|
16
|
+
const { value, label, labelProps, labelElement } = item.props;
|
|
17
|
+
const isSelected = value === selected;
|
|
16
18
|
return /* @__PURE__ */ jsxs(TabContainer, { selected: isSelected, onPress: () => onSelect(value), children: [
|
|
17
|
-
React.cloneElement(
|
|
19
|
+
React.cloneElement(item, {
|
|
18
20
|
_selected: isSelected
|
|
19
21
|
}),
|
|
20
22
|
label && !labelElement && /* @__PURE__ */ jsx(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-native-kit",
|
|
3
3
|
"description": "React Native components library",
|
|
4
|
-
"version": "3.5.15-beta.
|
|
4
|
+
"version": "3.5.15-beta.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@emotion/native": "~11.11.0",
|
|
20
20
|
"@emotion/react": "~11.11.0",
|
|
21
|
-
"@tecsinapse/react-core": "3.4.15-beta.
|
|
21
|
+
"@tecsinapse/react-core": "3.4.15-beta.7",
|
|
22
22
|
"react-native-linear-gradient": "~2.8.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"react-native-safe-area-context": "^4.0.0",
|
|
41
41
|
"react-native-vector-icons": "^9.2.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a6fdde978ccee1839aa8c3e18561ea17af68a59a"
|
|
44
44
|
}
|