0.9.1 • Published 5 years ago

@bellatashia/rn-simple-component2 v0.9.1

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

Component Name

Write the component overview here

Usage

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

Properties

NameDescriptionTypeRequiredDefault value
captionCaption of the componentstringyes
disabledMake the component disabledbooleanfalse
onPressCallback when the component is pressedfunctionyes
boldMake the text boldbooleanfalse
italicMake the text italicbooleanfalse
colorThe color of the componentstring#2f2f2f
disabledColorThe color when the component is disabledstring#8C8C8C

Note:

After cloning this repo, don't forget to edit these files:

  1. Edit these fields inside package.json file

    • name
    • description
    • url for repository, bugs, and homepage
    • author
  2. Edit component name inside index.js file.

  3. Edit component name inside src/custom-component.js file.
  4. Rename src/custom-component.js file appropriately.