Skip to content

Issues with theme creation examples and initialization in Expo 53 with Unistyles v3 #5

@maksim-romanov

Description

@maksim-romanov

Hi, first of all, thank you for this library — I found it very interesting for my project. I like that it unifies styles and typography, which is exactly what I was looking for, so I wanted to give it a try in my app.

However, I’ve run into a couple of difficulties:

  • The examples in the documentation for creating a theme seem to be incorrect — different keys are required than shown. Also, it looks like all keys are mandatory, but this isn’t clearly documented. It would help a lot if the docs included a full list of required keys.
  • When I try to use components like Screen, Text, Button, etc., I get the following error:
    Error: Unistyles is not initialized correctly. Please add babel plugin to your babel config., js engine: hermes

Environment:

  • Expo SDK 53
  • Unistyles v3
  • Reanimated v3
  • Hermes enabled

My Babel config is updated — I have both the Reanimated and Unistyles plugins added, but the error still occurs.

Is there something extra needed in the Expo 53 setup to make initialization work correctly?

Could you also share if there’s an example project (or starter repo) that shows a correct setup with Unistyles v3?
It would be very helpful to see how everything is wired together in a working project.

Thanks in advance!

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