Fix toast positioning (close #9)
This commit is contained in:
parent
c86ff23757
commit
0e6237e58c
15 changed files with 37 additions and 137 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, {useState} from 'react'
|
||||
import Toast from '../util/Toast'
|
||||
import * as Toast from '../util/Toast'
|
||||
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'
|
||||
import LinearGradient from 'react-native-linear-gradient'
|
||||
import {BottomSheetScrollView, BottomSheetTextInput} from '@gorhom/bottom-sheet'
|
||||
|
@ -52,9 +52,7 @@ export function Component({
|
|||
}
|
||||
},
|
||||
)
|
||||
Toast.show('Profile updated', {
|
||||
position: Toast.positions.TOP,
|
||||
})
|
||||
Toast.show('Profile updated')
|
||||
onUpdate?.()
|
||||
store.shell.closeModal()
|
||||
} catch (e: any) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue