@react-navigation/bottom-tabs 8.0.0-alpha.50 → 8.0.0-alpha.52
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.
|
@@ -19,7 +19,7 @@ function BottomTabNavigator({
|
|
|
19
19
|
state,
|
|
20
20
|
navigation,
|
|
21
21
|
descriptors,
|
|
22
|
-
|
|
22
|
+
render
|
|
23
23
|
} = useNavigationBuilder(TabRouter, {
|
|
24
24
|
initialRouteName,
|
|
25
25
|
backBehavior,
|
|
@@ -31,14 +31,12 @@ function BottomTabNavigator({
|
|
|
31
31
|
screenLayout,
|
|
32
32
|
router
|
|
33
33
|
});
|
|
34
|
-
return /*#__PURE__*/_jsx(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})
|
|
41
|
-
});
|
|
34
|
+
return render(/*#__PURE__*/_jsx(BottomTabView, {
|
|
35
|
+
...rest,
|
|
36
|
+
state: state,
|
|
37
|
+
navigation: navigation,
|
|
38
|
+
descriptors: descriptors
|
|
39
|
+
}));
|
|
42
40
|
}
|
|
43
41
|
export const createBottomTabNavigator = createNavigatorFactory(BottomTabNavigator);
|
|
44
42
|
export const createBottomTabScreen = createScreenFactory();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createNavigatorFactory","createScreenFactory","TabRouter","useNavigationBuilder","BottomTabView","jsx","_jsx","BottomTabNavigator","initialRouteName","backBehavior","routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","router","rest","state","navigation","descriptors","
|
|
1
|
+
{"version":3,"names":["createNavigatorFactory","createScreenFactory","TabRouter","useNavigationBuilder","BottomTabView","jsx","_jsx","BottomTabNavigator","initialRouteName","backBehavior","routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","router","rest","state","navigation","descriptors","render","createBottomTabNavigator","createBottomTabScreen"],"sourceRoot":"../../../src","sources":["navigators/createBottomTabNavigator.tsx"],"mappings":";;AAAA,SACEA,sBAAsB,EACtBC,mBAAmB,EAKnBC,SAAS,EAETC,oBAAoB,QACf,0BAA0B;AAOjC,SAASC,aAAa,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,SAASC,kBAAkBA,CAAC;EAC1BC,gBAAgB;EAChBC,YAAY;EACZC,wBAAwB;EACxBC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZC,MAAM;EACN,GAAGC;AACoB,CAAC,EAAE;EAC1B,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC,WAAW;IAAEC;EAAO,CAAC,GAAGlB,oBAAoB,CAMrED,SAAS,EAAE;IACXM,gBAAgB;IAChBC,YAAY;IACZC,wBAAwB;IACxBC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEF,OAAOK,MAAM,cACXf,IAAA,CAACF,aAAa;IAAA,GACRa,IAAI;IACRC,KAAK,EAAEA,KAAM;IACbC,UAAU,EAAEA,UAAW;IACvBC,WAAW,EAAEA;EAAY,CAC1B,CACH,CAAC;AACH;AAUA,OAAO,MAAME,wBAAwB,GACnCtB,sBAAsB,CAAmBO,kBAAkB,CAAC;AAE9D,OAAO,MAAMgB,qBAAqB,GAAGtB,mBAAmB,CAAmB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBottomTabNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createBottomTabNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,aAAU,CAAC;AAGlB,iBAAS,kBAAkB,CAAC,EAC1B,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,uBAAuB,+
|
|
1
|
+
{"version":3,"file":"createBottomTabNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createBottomTabNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,aAAU,CAAC;AAGlB,iBAAS,kBAAkB,CAAC,EAC1B,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,uBAAuB,+BA2BzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,aAAa,EAAE,0BAA0B,CAAC;IAC1C,QAAQ,EAAE,2BAA2B,CAAC;IACtC,aAAa,EAAE,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,kBAAkB,CAAC;CACtC;AAED,eAAO,MAAM,wBAAwB,0EACyB,CAAC;AAE/D,eAAO,MAAM,qBAAqB,6IAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/bottom-tabs",
|
|
3
3
|
"description": "Bottom tab navigator following iOS design guidelines",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.52",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"clean": "del lib"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@react-navigation/elements": "^3.0.0-alpha.
|
|
44
|
+
"@react-navigation/elements": "^3.0.0-alpha.50"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@jest/globals": "^30.4.1",
|
|
48
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
48
|
+
"@react-navigation/native": "^8.0.0-alpha.46",
|
|
49
49
|
"@testing-library/jest-dom": "^7.0.0",
|
|
50
50
|
"@testing-library/react": "^16.3.2",
|
|
51
51
|
"@testing-library/react-native": "^14.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^6.0.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
64
|
+
"@react-navigation/native": "^8.0.0-alpha.46",
|
|
65
65
|
"react": ">= 19.2.0",
|
|
66
66
|
"react-native": "*",
|
|
67
67
|
"react-native-safe-area-context": ">= 5.5.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
]
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "ac6baf188f7a456429a87b644053e765233f0151"
|
|
89
89
|
}
|
|
@@ -29,34 +29,31 @@ function BottomTabNavigator({
|
|
|
29
29
|
router,
|
|
30
30
|
...rest
|
|
31
31
|
}: BottomTabNavigatorProps) {
|
|
32
|
-
const { state, navigation, descriptors,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
32
|
+
const { state, navigation, descriptors, render } = useNavigationBuilder<
|
|
33
|
+
TabNavigationState<ParamListBase>,
|
|
34
|
+
TabRouterOptions,
|
|
35
|
+
TabActionHelpers<ParamListBase>,
|
|
36
|
+
BottomTabNavigationOptions,
|
|
37
|
+
BottomTabNavigationEventMap
|
|
38
|
+
>(TabRouter, {
|
|
39
|
+
initialRouteName,
|
|
40
|
+
backBehavior,
|
|
41
|
+
routeNamesChangeBehavior,
|
|
42
|
+
children,
|
|
43
|
+
layout,
|
|
44
|
+
screenListeners,
|
|
45
|
+
screenOptions,
|
|
46
|
+
screenLayout,
|
|
47
|
+
router,
|
|
48
|
+
});
|
|
50
49
|
|
|
51
|
-
return (
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/>
|
|
59
|
-
</NavigationContent>
|
|
50
|
+
return render(
|
|
51
|
+
<BottomTabView
|
|
52
|
+
{...rest}
|
|
53
|
+
state={state}
|
|
54
|
+
navigation={navigation}
|
|
55
|
+
descriptors={descriptors}
|
|
56
|
+
/>
|
|
60
57
|
);
|
|
61
58
|
}
|
|
62
59
|
|