0.9.1 • Published 5 years ago

@miidx/rn-text-button v0.9.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

rn-text-button

Usage

    <TextButton
        caption="Submit"
        onPress={somefunction}
        bold
        italic
        underline
        color="#00f"
    />

Properties

NameDescriptionTypeRequiredDefault Value
captionCaption of the buttonstringyes
disabledMake the button disabledbooleanfalse
onPressCallback when the button is pressedfunctionyes
boldMake the text boldbooleanfalse
italicMake the text italicbooleanfalse
underlineMake the text underlinebooleanfalse
colorChange text colorstring#2f2f2f
disabledColorChange text color when disabledstring#8C8C8C
containerStyleStyle for button containerString{}
textStyleStyle for button text. This takes precedence over bold, italic, underline and color propsString{}