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:
10
src/utils/fetches/announcementsFetch.ts
Normal file
10
src/utils/fetches/announcementsFetch.ts
Normal 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)
|
||||
}
|
6
src/utils/styles/layoutAnimation.ts
Normal file
6
src/utils/styles/layoutAnimation.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { LayoutAnimation } from 'react-native'
|
||||
|
||||
const layoutAnimation = () =>
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
||||
|
||||
export default layoutAnimation
|
Reference in New Issue
Block a user