({
buttonText,
handlePress,
width,
height,
})
| 2 | import { StyleSheet, Text, TouchableOpacity } from "react-native"; |
| 3 | |
| 4 | export default function DefaultButton({ |
| 5 | buttonText, |
| 6 | handlePress, |
| 7 | width, |
| 8 | height, |
| 9 | }) { |
| 10 | return ( |
| 11 | <TouchableOpacity |
| 12 | style={[styles.button, { width: width, height: height }]} |
| 13 | activeOpacity={0.7} |
| 14 | onPress={handlePress} |
| 15 | > |
| 16 | <Text style={styles.buttonText}>{buttonText}</Text> |
| 17 | </TouchableOpacity> |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | const styles = StyleSheet.create({ |
| 22 | button: { |
nothing calls this directly
no outgoing calls
no test coverage detected