1.0.5 • Published 6 years ago

@ticmakers-react-native/button v1.0.5

Weekly downloads
1
License
BSD-3-Clause
Repository
bitbucket
Last release
6 years ago

TIC Makers - React Native Button

React native component for button.

Powered by TIC Makers

Demo

Button Expo's snack

Install

Install @ticmakers-react-native/button package and save into package.json:

NPM

$ npm install @ticmakers-react-native/button --save

Yarn

$ yarn add @ticmakers-react-native/button

How to use?

import React from 'react'
import Button from '@ticmakers-react-native/button'
import Icon from '@ticmakers-react-native/icon'

export default class App extends React.Component {
  render() {
    return (
      <Button title="My button" iconLeft={{ name: 'star' }} />

      // OR

      <Button iconRight>
        <Text>My button</Text>
        <Icon name="star" />
      </Button>
    )
  }
}

Properties

NameTypeDefault ValueDefinition
title---

Todo

  • Test on iOS
  • Improve and add new features
  • Add more styles
  • Improve readme (example & demo)
  • Create tests

Version 1.0.5 (Changelog)