Update compose prompt for isual balance and to include image button

This commit is contained in:
Paul Frazee 2023-01-18 13:57:53 -06:00
parent 9d6c4698a1
commit bf03167ca6
7 changed files with 56 additions and 19 deletions

View file

@ -30,7 +30,7 @@ export const Feed = observer(function Feed({
feed: FeedModel
style?: StyleProp<ViewStyle>
scrollElRef?: MutableRefObject<FlatList<any> | null>
onPressCompose: () => void
onPressCompose: (imagesOpen?: boolean) => void
onPressTryAgain?: () => void
onScroll?: OnScrollCb
testID?: string
@ -41,9 +41,7 @@ export const Feed = observer(function Feed({
// like PureComponent, shouldComponentUpdate, etc
const renderItem = ({item}: {item: any}) => {
if (item === COMPOSE_PROMPT_ITEM) {
return (
<ComposePrompt onPressCompose={onPressCompose} text="New message" />
)
return <ComposePrompt onPressCompose={onPressCompose} />
} else if (item === EMPTY_FEED_ITEM) {
return (
<EmptyState