@beesight/component

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

Usage no npm install needed!

<script type="module">
  import beesightComponent from 'https://cdn.skypack.dev/@beesight/component';
</script>

README

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>    
    )
  }
}