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

797
Views
Animando el radio del borde en React Native

No puedo animar la propiedad borderRadius en una imagen ReactNative, parece que solo vuelve a renderizar la imagen cuando se completa la animación. Se desvanece al comienzo de la animación y vuelve a aparecer al finalizar la animación. Esto solo sucede en Android; en iOS, la animación se reproduce correctamente.

Estoy tratando de animar un círculo que se expande en un cuadrado animando el borderRadius:

 constructor(props) { super(props); this.state = { borderRadius: new Animated.Value(ALBUM_CIRCLE_DIAMETER /2) }; } _zoomIn = () => { Animated.timing( this.state.borderRadius, { toValue: 0, duration: ZOOM_ANIMATION_DURATION_MS, easing: Easing.linear } ).start() }

Y el marcado:

 <Animated.Image style={[ styles.albumArtCircle, { width: this.state.albumArtWidth }, { height: this.state.albumArtHeight }, { borderRadius: this.state.borderRadius }, ]} resizeMode='contain' source={require('../images/sampleAlbum.jpg')}> </Animated.Image>
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

¡Derecha! Elimina la propiedad resizeMode. Esto resolverá tu problema

over 4 years ago · Santiago Trujillo Report

0

Eliminar resizeMode='contain' hizo que esto funcionara.

over 4 years ago · Santiago Trujillo 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!