2021-01-14 22:53:01 +01:00
|
|
|
import React, { useContext } from 'react'
|
2021-01-22 01:34:20 +01:00
|
|
|
import { Modal, View } from 'react-native'
|
2021-01-14 22:53:01 +01:00
|
|
|
import { useTheme } from '@utils/styles/ThemeManager'
|
|
|
|
import ComposeContext from './utils/createContext'
|
|
|
|
|
2022-12-24 01:18:20 +01:00
|
|
|
const ComposePosting = () => {
|
|
|
|
const { composeState } = useContext(ComposeContext)
|
|
|
|
const { colors } = useTheme()
|
2021-01-14 22:53:01 +01:00
|
|
|
|
2022-12-24 01:18:20 +01:00
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
transparent
|
|
|
|
animationType='fade'
|
|
|
|
visible={composeState.posting}
|
|
|
|
children={<View style={{ flex: 1, backgroundColor: colors.backgroundOverlayInvert }} />}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
2021-01-14 22:53:01 +01:00
|
|
|
|
|
|
|
export default ComposePosting
|