MCPcopy Create free account
hub / github.com/OneBitCodeBlog/onebitlife / DefaultButton

Function DefaultButton

src/Components/Common/DefaultButton/index.jsx:4–19  ·  view source on GitHub ↗
({
  buttonText,
  handlePress,
  width,
  height,
})

Source from the content-addressed store, hash-verified

2import { StyleSheet, Text, TouchableOpacity } from "react-native";
3
4export 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
21const styles = StyleSheet.create({
22 button: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected