mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Lots of updates
This commit is contained in:
9
src/utils/getCurrentTab.ts
Normal file
9
src/utils/getCurrentTab.ts
Normal file
@ -0,0 +1,9 @@
|
||||
const getCurrentTab = (navigation: any) => {
|
||||
const {
|
||||
length,
|
||||
[length - 1]: last
|
||||
} = navigation.dangerouslyGetState().history
|
||||
return `Screen-${last.key.split(new RegExp(/Screen-(.*?)-/))[1]}`
|
||||
}
|
||||
|
||||
export default getCurrentTab
|
Reference in New Issue
Block a user