1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic new react-navigation types

This commit is contained in:
Zhiyuan Zheng
2021-08-29 15:25:38 +02:00
parent 6575a787f6
commit 122dae7404
68 changed files with 1099 additions and 1064 deletions

View File

@ -46,7 +46,7 @@ const apiGeneral = async <T = unknown>({
params,
headers: {
'Content-Type': 'application/json',
'User-Agent': `tooot/${Constants.manifest.version}`,
'User-Agent': `tooot/${Constants.manifest?.version}`,
Accept: '*/*',
...headers
},

View File

@ -68,7 +68,7 @@ const apiInstance = async <T = unknown>({
params,
headers: {
'Content-Type': 'application/json',
'User-Agent': `tooot/${Constants.manifest.version}`,
'User-Agent': `tooot/${Constants.manifest?.version}`,
Accept: '*/*',
...headers,
...(token && {