Skip to content

Commit 93062c1

Browse files
committed
Add flag for disabling swipe gestures in stack routers.
1 parent c1303cc commit 93062c1

File tree

5 files changed

+938
-543
lines changed

5 files changed

+938
-543
lines changed

react-native/components/createStackRoutingComponent/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ export const createStackRoutingComponent = <
9898
}}
9999
onBack={props.onBack}
100100
allowsSwiping={
101-
index > 0 && index === props.routeState.length - 1
101+
index > 0 &&
102+
index === props.routeState.length - 1 &&
103+
routeTable[item.key].allowsSwiping
102104
}
103105
>
104-
{React.createElement(routeTable[item.key], {
106+
{React.createElement(routeTable[item.key].component, {
105107
parameters: item.parameters,
106108
push: (...itemsToAdd) => {
107109
props.setRouteState([...props.routeState, ...itemsToAdd]);

0 commit comments

Comments
 (0)