Skip to content

wniemiec-component-reactnative/action-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7359540 Β· Aug 10, 2021

History

4 Commits
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021
Aug 10, 2021

Repository files navigation

Action button

Simple button.

React Native compatibility Release License


❇ Introduction

React Native component that allows you to press a button to perform a certain action, in addition to allowing the programmer to choose the button style according to your preference.

πŸ–Ό Gallery

image 2 image 3 image 4 image 5 image 6 image 7

❓ How to use

  1. Install the component
$ npm install --save @wniemiec-component-reactnative/action-button
  1. Import the component
import ActionButton from '@wniemiec-component-reactnative/action-button';
  1. Use it
[...]

import React from 'react';

[...]

<ActionButton
  title="Action Button"
  onPress={() => alert('Hey! You clicked on me!')}
/>
[...]

πŸ“– Documentation

Property Type Description Default
title string Button label -
onPress function(void): void Function that is called when the button is pressed -
bgColor string Background color (in hexadecimal) "#233287"
fgColor string Foreground color (in hexadecimal) "#FFFFFF"
full boolean Indicates whether the width should be 100% false

🚩 Changelog

Details about each version are documented in the releases section.

🀝 Contribute!

See the documentation on how you can contribute to the project here.

πŸ“ Files

/

Name Type Description
docs Directory Documentation files
src Directory Source files