RobertBroersma / beanheads

Easily create characters for your projects
https://beanheads.robertbroersma.com
MIT License
1.39k stars 93 forks source link

Invariant Violation: View config getter callback for component `path` must be a function #49

Open noctivityinc opened 5 months ago

noctivityinc commented 5 months ago
 Invariant Violation: View config getter callback for component `path` must be a function (received `undefined`). Make sure to start component names with a capital letter.

This error is located at:
    in path (created by Mask)
    in mask (created by Mask)
    in Mask
    in svg
    in Unknown

When trying to use this:

    <BigHead
        accessory="shades"
        body="chest"
        circleColor="blue"
        clothing="naked"
        clothingColor="white"
        eyebrows="concerned"
        eyes="happy"
        faceMask={false}
        faceMaskColor="white"
        facialHair="none"
        graphic="react"
        hair="afro"
        hairColor="blonde"
        hat="turban"
        hatColor="blue"
        lashes
        lipColor="turqoise"
        mask
        mouth="openSmile"
        skinTone="yellow"
      />
noctivityinc commented 5 months ago

@RobertBroersma any thoughts on this? I love me some bigheads!

RobertBroersma commented 5 months ago

@noctivityinc Could you send me an isolated example in CodeSandbox? I'd be happy to take a look!

sayan-wholewave commented 1 month ago

same issue. "beanheads": "^0.3.3", "react-native": "0.74.2",

sayan-wholewave commented 1 month ago

this is only working in expo web. not in android and ios.

Screenshot 2024-07-12 at 10 35 13 AM Screenshot 2024-07-12 at 10 35 48 AM Screenshot 2024-07-12 at 10 36 19 AM
RobertBroersma commented 1 month ago

I have no knowledge of React Native, but @felipecespedes created a port: https://github.com/felipecespedes/react-native-bigheads

Does that help you?