diff --git a/package.json b/package.json index 404314f0..07dd3ff5 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "react-dom": "16.13.1", "react-i18next": "^11.8.4", "react-native": "https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz", + "react-native-animated-spinkit": "^1.4.2", "react-native-expo-image-cache": "^4.1.0", "react-native-gesture-handler": "~1.8.0", "react-native-htmlview": "^0.16.0", diff --git a/src/components/BottomSheet.tsx b/src/components/BottomSheet.tsx index 03ab7521..93541c53 100644 --- a/src/components/BottomSheet.tsx +++ b/src/components/BottomSheet.tsx @@ -10,7 +10,7 @@ import { import { useSafeAreaInsets } from 'react-native-safe-area-context' import { useTheme } from '@utils/styles/ThemeManager' import { StyleConstants } from '@utils/styles/constants' -import { ButtonRow } from '@components/Button' +import Button from '@components/Button' export interface Props { children: React.ReactNode @@ -84,12 +84,12 @@ const BottomSheet: React.FC = ({ children, visible, handleDismiss }) => { style={[styles.handle, { backgroundColor: theme.background }]} /> {children} - - closeModal.start(() => handleDismiss())} - text='取消' - /> - +