JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q28366F
  • License BSD-3-Clause

TIC Makers - React Native Button

Package Exports

  • @ticmakers-react-native/button

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ticmakers-react-native/button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)