Traduction + alias + routing + refactoring

This commit is contained in:
Sebastien Riviere
2026-02-20 22:00:54 +01:00
parent 776bbcd723
commit 76ee9674de
50 changed files with 2978 additions and 1746 deletions

View File

@@ -0,0 +1,23 @@
// React
import { TouchableOpacity, Image, StyleSheet } from 'react-native';
export const IconButton = ({ style = {}, source, onPress = () => {} }) => {
return (
<TouchableOpacity style={[styles.button, style]} onPress={onPress}>
<Image source={source} style={styles.icon} resizeMode="contain" />
</TouchableOpacity>
);
};
const styles = StyleSheet.create({
button: {
width: 50,
height: 50,
alignItems: 'center',
justifyContent: 'center',
},
icon: {
width: "80%",
height: "80%",
},
});