import React, { Component } from 'react' import { StyleSheet, View, Text, Image, TouchableOpacity, TouchableWithoutFeedback, ViewStyle, StyleProp, GestureResponderEvent } from 'react-native' import LinearGradient from 'react-native-linear-gradient'; export interface Props { isOpacity?: boolean text: string style?: StyleProp | undefined; onPress: ((event: GestureResponderEvent) => void) | undefined; onLongPress: ((event: GestureResponderEvent) => void) | undefined; } export interface State { } export default class GradientButton extends React.Component { constructor(props: Props | Readonly) { super(props); } componentDidMount() { } componentWillUnmount() { } public readonly state: Readonly = { } render() { let { isOpacity, text, style, onPress, onLongPress } = this.props; return ( {text ? text : null} ); } } const styles = StyleSheet.create({ main: { } })