@beesight/component

1.0.8 • Public • Published

BeeComponent

npm license

Custom component to deal with crazy pressing by Tester. =]] nodei.co

Post: https://medium.com/p/142c75bf76b8

How to use?

import BeeComponent from '@beesight/component'


export default class MainScreen extends BeeComponent {
  
  constructor(props) {
    super(props)
    //@nhancv: Custom BeeComponent properties
    this.beeComponentPressDelayTimeOut = 1000 //Default 500ms
  }

  render() {
    return (
      <Button onPress={() => {
                    this.onPressDelay(() => {
                      //TODO: call actual func here    
                    })
                  }} 
                >
                  <Text>Button 1</Text>
      </Button>    
    )
  }
}          

Readme

Keywords

none

Package Sidebar

Install

npm i @beesight/component

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

3.66 kB

Total Files

4

Last publish

Collaborators

  • thambt
  • nhancv