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

A lot of updates

This commit is contained in:
Zhiyuan Zheng
2020-12-01 00:44:28 +01:00
parent 0e3528d2cd
commit 9bfee02484
18 changed files with 463 additions and 279 deletions

View File

@ -6,16 +6,16 @@ import { useTheme } from 'src/utils/styles/ThemeManager'
import { StyleConstants } from 'src/utils/styles/constants'
export interface Props {
onPressFunction: () => void
onPress: () => void
icon: string
text: string
}
const BottomSheetRow: React.FC<Props> = ({ onPressFunction, icon, text }) => {
const BottomSheetRow: React.FC<Props> = ({ onPress, icon, text }) => {
const { theme } = useTheme()
return (
<Pressable onPress={() => onPressFunction()} style={styles.pressable}>
<Pressable onPress={onPress} style={styles.pressable}>
<Feather
name={icon}
color={theme.primary}
@ -28,6 +28,7 @@ const BottomSheetRow: React.FC<Props> = ({ onPressFunction, icon, text }) => {
const styles = StyleSheet.create({
pressable: {
width: '100%',
flexDirection: 'row',
marginBottom: StyleConstants.Spacing.L
},