Add composer FAB to home page

This commit is contained in:
Paul Frazee 2022-08-31 20:09:58 -05:00
parent 4aa8a58f27
commit b3b2cfe909
7 changed files with 71 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import React, {useState, useEffect, useLayoutEffect} from 'react'
import {Image, StyleSheet, TouchableOpacity, View} from 'react-native'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {Feed} from '../com/feed/Feed'
import {FAB} from '../com/util/FloatingActionButton'
import {useStores} from '../../state'
import {useLoadEffect} from '../lib/navigation'
import {AVIS} from '../lib/assets'
@ -48,9 +49,14 @@ export function Home({params}: ScreenParams) {
// })
// }, [navigation])
const onComposePress = () => {
store.nav.navigate('/compose')
}
return (
<View>
<Feed feed={store.homeFeed} />
<FAB icon="pen-nib" onPress={onComposePress} />
</View>
)
}