0.9.1 • Published 5 years ago
@pannitapril/rn-simple-component v0.9.1
Component Name
Write the component overview here
Usage
<ComponentName
caption="Submit"
onPress={somefunction}
bold
italic
color="#00f"
/>
Properties
Name | Description | Type | Required | Default value |
---|---|---|---|---|
caption | Caption of the component | string | yes | |
disabled | Make the component disabled | boolean | false | |
onPress | Callback when the component is pressed | function | yes | |
bold | Make the text bold | boolean | false | |
italic | Make the text italic | boolean | false | |
color | The color of the component | string | #2f2f2f | |
disabledColor | The color when the component is disabled | string | #8C8C8C |
Note:
After cloning this repo, don't forget to edit these files:
Edit these fields inside
package.json
file- name
- description
- url for
repository
,bugs
, andhomepage
- author
Edit component name inside
index.js
file.- Edit component name inside
src/custom-component.js
file. - Rename
src/custom-component.js
file appropriately.