Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

336
Views
onMouseDown y onMouseUp en reaccionar nativo?

tenia en reactjs

 render() { return ( <div onMouseDown={this.onMouseDown} onMousUp={this.onMouseUp} > </div> ) }

Con el fin de ejecutar algún código mientras el usuario mantenía presionado el elemento.

¿Cómo puedo hacer lo mismo en react-native? Simplemente cambiar div a View y mantener onMouseDown y onMouseUp no hace nada en ninguno de los eventos, y esto que encontré: https://stackoverflow.com/a/44984892/3310334

 <View onStartShouldSetResponder={() => true} onResponderStart={calledWhenTheTouchStarts}> <Text>Press Me!</Text> </View>

Parece un uso indebido involuntario de una API

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Querrá usar un elemento Pressable en lugar de View con una combinación de eventos onPressIn y onPressOut . Ver más aquí

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!