Rework alt image modal to be fullscreen due to android bugs with the bottomsheet and keyboard (#577)

zio/stable
Paul Frazee 2023-05-04 00:55:57 -05:00 committed by GitHub
parent ab3074fdee
commit 2749b8e371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -1,19 +1,17 @@
import React, {useCallback, useState} from 'react'
import {StyleSheet, View} from 'react-native'
import {StyleSheet, TextInput, TouchableOpacity, View} from 'react-native'
import {usePalette} from 'lib/hooks/usePalette'
import {TextInput} from './util'
import {gradients, s} from 'lib/styles'
import {enforceLen} from 'lib/strings/helpers'
import {MAX_ALT_TEXT} from 'lib/constants'
import {useTheme} from 'lib/ThemeContext'
import {Text} from '../util/text/Text'
import {TouchableOpacity} from 'react-native-gesture-handler'
import LinearGradient from 'react-native-linear-gradient'
import {useStores} from 'state/index'
import {isDesktopWeb} from 'platform/detection'
import {ImageModel} from 'state/models/media/image'
export const snapPoints = ['80%']
export const snapPoints = ['fullscreen']
interface Props {
image: ImageModel