Skip to content

Refactor uses of Text, Button, and TextInput #6585

Closed

Description

@puneetlath

This is a follow up to #3133 and #6583 in which we renamed our custom Text and Button components to ExpensifyText and ExpensifyButton and added a rule to our ESLint configuration that throws an error if Text, Button or TextInput are imported from react-native.

We prefer for our custom components to be used rather than the default react native Text, Button or TextInput components, because they are built with our style/specifications already. However we have ~15 cases in our code currently where the react native components are used.

Some of those cases are in the custom components themselves, which are built atop the react native components. But we also have some cases where the react native components are being used in other components. We should see if those can be refactored to use our components instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EngineeringReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions