tooot/src/screens/Compose/Posting.tsx

21 lines
552 B
TypeScript
Raw Normal View History

import { useTheme } from '@utils/styles/ThemeManager'
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 ComposeContext from './utils/createContext'
const ComposePosting = () => {
const { composeState } = useContext(ComposeContext)
const { colors } = useTheme()
2021-01-14 22:53:01 +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