mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Basic reply and re-edit done
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
const getCurrentTab = (navigation: any) => {
|
||||
const {
|
||||
length,
|
||||
[length - 1]: last
|
||||
} = navigation.dangerouslyGetState().history
|
||||
const { length, [length - 1]: last } =
|
||||
navigation.dangerouslyGetState().history ||
|
||||
navigation.dangerouslyGetParent()?.dangerouslyGetState().history
|
||||
return `Screen-${last.key.split(new RegExp(/Screen-(.*?)-/))[1]}`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user