Skip to content

No sign of FlareComponent getting rendered #24

Description

@obitodarky

I'm using my animation in a react app and I used the following code to add my animation

    render={data => (
      <OuterContainer>
        <Container>
          <NameHeader>{data.site.siteMetadata.title}
          <FlareComponent width="200" height="200" animationName="green" file="light.flr" />
          </NameHeader>
          <Description>{data.site.siteMetadata.subtitle}</Description>
        </Container>
      </OuterContainer>
    )}

I checked the Component with my React Developer tool and this is what I found in my FlareComponent
image

The console showed me the following error

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data FlareReact.js:9534

Here is my React file for a reference.
You can also find the flare files(I tried it with both Binary and JSON) in the components directory of the repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions