1
0
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:
Zhiyuan Zheng
2020-12-07 12:31:40 +01:00
parent 69289e8d40
commit 8d715f4324
17 changed files with 420 additions and 253 deletions

View File

@ -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]}`
}