rax-button
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

Button

npm

Button is the basic button component. Internal implementation relies on <Touchable> to support onPress defined click events. Button with default styles, but also support the style of custom.

Install

$ npm install rax-button --save

Import

import Button from 'rax-button';

Props

name type default describe
onPress Function click events

At the same time to support any custom attributes through

Example

// demo
import {createElement, Component, render} from 'rax';
import View from 'rax-view';
import Button from 'rax-button';
 
class App extends Component {
  render() {
    return (
      <View style={{ width: 750 }}>
        <Button onPress={(evt) => { alert('你好'); }}>点我</Button>
      </View>
    );
  }
}
 
render(<App />);

/rax-button/

    Package Sidebar

    Install

    npm i rax-button

    Weekly Downloads

    12

    Version

    0.6.5

    License

    BSD-3-Clause

    Unpacked Size

    231 kB

    Total Files

    16

    Last publish

    Collaborators

    • zeroling
    • wintercn
    • yuanyan
    • yacheng
    • liangzhi.llz