@beesight/component
v1.0.8
Published
Custom component to deal with crazy pressing by Tester. =]]
Downloads
2
Readme
BeeComponent
Custom component to deal with crazy pressing by Tester. =]]
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>
)
}
}