@ticmakers-react-native/button
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Name Type Default Value Definition
title - - -

Todo

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

Version 1.0.5 (Changelog)

Package Sidebar

Install

npm i @ticmakers-react-native/button

Weekly Downloads

3

Version

1.0.5

License

BSD-3-Clause

Unpacked Size

928 kB

Total Files

63

Last publish

Collaborators

  • ticmakers