1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fine tune compose

This commit is contained in:
Zhiyuan Zheng
2020-12-06 21:42:19 +01:00
parent add331ef0e
commit e5eaf162f4
18 changed files with 586 additions and 407 deletions

View File

@ -10,7 +10,7 @@ import {
import { useSafeAreaInsets } from 'react-native-safe-area-context'
import { useTheme } from 'src/utils/styles/ThemeManager'
import { StyleConstants } from 'src/utils/styles/constants'
import Button from './Button'
import { ButtonRow } from './Button'
export interface Props {
children: React.ReactNode
@ -84,7 +84,7 @@ const BottomSheet: React.FC<Props> = ({ children, visible, handleDismiss }) => {
style={[styles.handle, { backgroundColor: theme.background }]}
/>
{children}
<Button
<ButtonRow
onPress={() => closeModal.start(() => handleDismiss())}
text='取消'
/>