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

133
Views
How to display SVG from a Module

I am using this library react-native-bigheads. I want to display the individual svg from which the final "avatar" is drawn. They can be seen here src/components and look like this

import React from 'react'
import { useTheme } from '../../themeContext'
import { ClothingProps } from './types'
import { Path } from 'react-native-svg'
import { Polygon } from 'react-native-svg'

export const Front = ({ color }: ClothingProps) => {
  const { colors, skin } = useTheme()

  const { base } = colors.clothing[color]

  return (
    <>
      <Path
        d="M329.09,794.17c56.12,35.58,168.48,75.53,168.48,75.53l-.16,14S397,879.36,316.32,844.9C316.32,814.38,329.09,794.17,329.09,794.17Z"
        fill={base}
        stroke={colors.outline}
        strokeMiterlimit={10}
        strokeWidth="12px"
      />
...

This is how I am trying to render them

import React from 'react';
import {
    View,
    ViewStyle
} from 'react-native';
import { Front } from 'react-native-bigheads/src/components/clothing/Dress.tsx'

const Foo = () => {

return <View
           style={{ width: 100, height: 100, ...ViewStyle }}>
               <Front
                   color='blue' />
       </View>

But the <View /> stays empty, nothing renders. Why is that?

about 4 years ago · Juan Pablo Isaza
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!