Skip to content

Tamagui setup #3

@natew

Description

@natew

In general doing the styled(ReactNativeView) will be much slower than doing this:

import { Stack } from 'tamagui'

const TamaguiView = styled(Stack)

Or you can import View from tamagui. This is what the docs recommend. Of course also enabling the optimizing compiler would speed things up a lot more but don't need that mentioned.

I can probably make a case where tamagui recognizes the default RN View and optimizes it a bit more as well, I'll do that in an upcoming release, but I think just the change above is fair.

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