@react-navigation/stack
Version:
Stack navigator component for iOS and Android with animated transitions and gestures
12 lines (11 loc) • 378 B
JavaScript
export const getModalRouteKeys = (routes, descriptors) => routes.reduce((acc, route) => {
const {
presentation
} = descriptors[route.key]?.options ?? {};
if (acc.length && !presentation || presentation === 'modal' || presentation === 'transparentModal') {
acc.push(route.key);
}
return acc;
}, []);
//# sourceMappingURL=getModalRoutesKeys.js.map
;