• Altro,  Tech

    Testing SVG in React Native

    As React Native, or better Android and iOS don’t support SVG natively the only way to use an Svg is transforming it into a component. The package is react-native-svg and I will briefly describe some pros/ cons and a fast way to test it. Cons: you have to adapt and translate the SVG into a component, and this could take time Pros: at the end of this kind of migration you will have something that could be adjusted and styled from top, passing the right prop into it (like color,stroke, fill…). Beside this you can test a component, so yes it sounds funny, you can test the logical ui behaviour…

    Commenti disabilitati su Testing SVG in React Native

Utilizzando il sito, accetti l'utilizzo dei cookie da parte nostra. maggiori informazioni

Questo sito utilizza i cookie per fornire la migliore esperienza di navigazione possibile. Continuando a utilizzare questo sito senza modificare le impostazioni dei cookie o cliccando su "Accetta" permetti il loro utilizzo.

Chiudi