Native formSheet for GIF select on iOS (#4328)

* native formsheet for gif select

* trigger confirm discard if have gif

* give modal a background color

* fix web top bar - unrelated but I cba to make a separate PR
This commit is contained in:
Samuel Newman 2024-06-04 04:05:46 +03:00 committed by GitHub
parent b02445883a
commit da96fb1ef5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 331 additions and 58 deletions

View file

@ -173,7 +173,7 @@ export const ComposePost = observer(function ComposePost({
)
const onPressCancel = useCallback(() => {
if (graphemeLength > 0 || !gallery.isEmpty) {
if (graphemeLength > 0 || !gallery.isEmpty || extGif) {
closeAllDialogs()
if (Keyboard) {
Keyboard.dismiss()
@ -183,6 +183,7 @@ export const ComposePost = observer(function ComposePost({
onClose()
}
}, [
extGif,
graphemeLength,
gallery.isEmpty,
closeAllDialogs,
@ -728,8 +729,6 @@ function useAnimatedBorders() {
const styles = StyleSheet.create({
topbar: {},
topbarDesktop: {
paddingTop: 10,
paddingBottom: 10,
height: 50,
},
topbarInner: {