we-insights-react-native
Version:
[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficien
35 lines • 770 B
JavaScript
import React from 'react';
import { Pressable, Text, StyleSheet } from 'react-native';
export const Button = ({
text,
onPress,
style = {}
}) => {
const combinedWrapperStyles = {
...styles.wrapper,
backgroundColor: style.backgroundColor
};
const combinedTextStyles = {
...styles.text,
color: style.textColor
};
return /*#__PURE__*/React.createElement(Pressable, {
style: combinedWrapperStyles,
onPress: onPress
}, /*#__PURE__*/React.createElement(Text, {
style: combinedTextStyles
}, text));
};
const styles = StyleSheet.create({
wrapper: {
borderRadius: 64,
padding: 16
},
text: {
fontSize: 16,
lineHeight: 24,
textAlign: 'center',
fontWeight: '500'
}
});
//# sourceMappingURL=Button.js.map