diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-04 00:55:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 00:55:57 -0500 |
commit | 2749b8e3713f853aed9f3449dd76d6bd50e81cc9 (patch) | |
tree | 7771161f867335e67dfedc09e6ff7784a49ae3a1 /src/view/com/modals/AltImage.tsx | |
parent | ab3074fdee44103424a58577f5c81c9d2436fc68 (diff) | |
download | voidsky-2749b8e3713f853aed9f3449dd76d6bd50e81cc9.tar.zst |
Rework alt image modal to be fullscreen due to android bugs with the bottomsheet and keyboard (#577)
Diffstat (limited to 'src/view/com/modals/AltImage.tsx')
-rw-r--r-- | src/view/com/modals/AltImage.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/modals/AltImage.tsx b/src/view/com/modals/AltImage.tsx index ce0a675a9..0359359cc 100644 --- a/src/view/com/modals/AltImage.tsx +++ b/src/view/com/modals/AltImage.tsx @@ -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 |