0.6.5 • Published 7 years ago

rax-button v0.6.5

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
7 years ago

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

nametypedefaultdescribe
onPressFunctionclick 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 />);
0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

8 years ago

0.4.20

8 years ago

0.4.19

8 years ago

0.4.18

8 years ago

0.4.17

8 years ago

0.4.16

8 years ago

0.4.15

8 years ago

0.5.0-beta

8 years ago

0.4.14

8 years ago

0.4.13

8 years ago

0.4.12

8 years ago

0.4.11

8 years ago

0.4.10

8 years ago

0.4.9

8 years ago

0.4.8

8 years ago

0.4.7

8 years ago

0.4.6

8 years ago

0.4.5

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.11

8 years ago

0.2.10

8 years ago

0.2.9

8 years ago

0.2.8

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago