Skip to content

'flex' property doesn't work with textRestyleFunctions #132

Closed
@msvargas

Description

@msvargas

We found some inconsistency with textRestyleFunctions add flex property and it doesn't work I had to add layout restylefunction and it works

Example: (doesn't work for me v1.6.1)

<Text flex={1}>Test</Text>
import { layout, TextProps as RestyleTextProps, textRestyleFunctions } from '@shopify/restyle';

.....
const restyleFunctions = [...textRestyleFunctions, layout];
....
const props = useRestyle(restyleFunctions, rest);

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