UNPKG

@react-navigation/native-stack

Version:
12 lines (11 loc) 378 B
"use strict"; 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