1.0.1 • Published 3 years ago

@wniemiec-component-reactnative/transparent-button v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm.io

❇ 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

❓ How to use

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

import React from 'react';
import { View } from 'react-native';

[...]

<View style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
  <TransparentButton title='Transparent button' onPress={() => alert('Hey! You clicked on me!')} fgColor='blue' />
</View>

[...]

📖 Documentation

PropertyTypeDescriptionDefault
titlestringButton label-
onPressfunction(void): voidFunction that is called when the button is pressed-
selectedboolClicked status-
fgColorstringForeground color (in hexadecimal)"#000000"
fullstringButton size (big, regular or small)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

/

NameTypeDescription
docsDirectoryDocumentation files
srcDirectorySource files