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

Basic announcement done

This commit is contained in:
Zhiyuan Zheng
2020-12-23 01:31:11 +01:00
parent e00ec84c7c
commit eeee40b49a
6 changed files with 340 additions and 10 deletions

View File

@ -0,0 +1,10 @@
import client from '@api/client'
export const announcementFetch = async (): Promise<Mastodon.Announcement[]> => {
const res = await client({
method: 'get',
instance: 'local',
url: `announcements`
})
return Promise.resolve(res.body)
}

View File

@ -0,0 +1,6 @@
import { LayoutAnimation } from 'react-native'
const layoutAnimation = () =>
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
export default layoutAnimation