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

162
Views
Usando patrón SVG como fondo

React-Native-svg es compatible con el patrón SVG, sin embargo, no estoy seguro de cómo aplicarlo... Cuando pruebo el ejemplo mínimo de la documentación , aparece una pantalla en blanco, una pantalla en blanco.

 <View style={{paddingTop: 20, height: '100%', flex: 1, backgroundColor: 'white'}}> <Svg width="100%" height="100%" viewBox="0 0 800 400"> <Defs> <Pattern id="TrianglePattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" viewBox="0 0 10 10"> <Path d="M 0 0 L 7 0 L 3.5 7 z" fill="red" stroke="blue" /> </Pattern> </Defs> </Svg> </View>

¿Porqué es eso?

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

0

Como señaló @Robert Longson en un comentario debajo de la Q. Necesita una forma (como un rect o una ellipse ) con la id dada en el pattern .

 <Svg width="100%" height="100%" viewBox="0 0 800 400"> <Defs> <Pattern id="TrianglePattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" viewBox="0 0 10 10" > <Path d="M 0 0 L 7 0 L 3.5 7 z" fill="red" stroke="blue" /> </Pattern> </Defs> <Rect fill="none" stroke="blue" x="1" y="1" width="798" height="398" /> <Ellipse fill="url(#TrianglePattern)" // make sure this is the id given in the pattern stroke="black" strokeWidth="5" cx="400" cy="200" rx="350" ry="150" /> </Svg>

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!