BlueWallet/components/icons/SettingsButton.tsx

39 lines
1,020 B
TypeScript
Raw Normal View History

2024-06-13 13:26:05 -04:00
import React from 'react';
import { StyleSheet, TouchableOpacity } from 'react-native';
import { Icon } from '@rneui/themed';
import { useTheme } from '../themes';
import { useExtendedNavigation } from '../../hooks/useExtendedNavigation';
import loc from '../../loc';
const SettingsButton = () => {
const { colors } = useTheme();
const { navigate } = useExtendedNavigation();
const onPress = () => {
navigate('Settings');
};
return (
<TouchableOpacity
accessibilityRole="button"
accessibilityLabel={loc.settings.default_title}
testID="SettingsButton"
2024-06-22 12:08:57 -04:00
style={[style.buttonStyle, { backgroundColor: colors.lightButton }]}
2024-06-13 13:26:05 -04:00
onPress={onPress}
>
2024-06-13 13:39:32 -04:00
<Icon size={22} name="more-horiz" type="material" color={colors.foregroundColor} />
2024-06-13 13:26:05 -04:00
</TouchableOpacity>
);
};
export default SettingsButton;
const style = StyleSheet.create({
buttonStyle: {
width: 30,
height: 30,
borderRadius: 15,
justifyContent: 'center',
alignContent: 'center',
},
});