-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor uses of react-native Text to ExpensifyText #6658
Conversation
…ad of Text on Android
…ad of Text on iOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Should we update the documentation to make sure we use ExpensifyText in future
I updated the ESLint config so that it'll throw an error if anyone uses |
@MonilBhavsar I removed the comment from |
That's great! Can you please link that PR.
I don't see anywhere in documentation where we list components we use. So, all good! I was looking if we can update |
Yep, here you go: Expensify/eslint-config-expensify#38 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @MonilBhavsar in version: 1.1.20-3 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.21-1 🚀
|
Details
We recently updated our custom
Text
component to be calledExpensifyText
to more clearly distinguish it from thereact-native
component with the same name. We also added a new rule to our ESLint config preventing the import of the defaultText
component fromreact-native
. This is because we want people to use our custom component instead.There were a handful of instances of the default
react-native
component being used in our code-base. This PR updates those to use our custom component instead. The only file that still importsText
fromreact-native
is ourExpensifyText
component, which is built on top of thereact-native
one.cc @madmax330 since you reviewed the ESLint PR.
Fixed Issues
#6585
Tests
Open the page for each component that was changed and ensured the text looks the same/normal.
QA Steps
Check each component to make sure the text looks normal. Here's how to get to each component.
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
www.expensify.com
)MarkerBadge:
Tested On
Screenshots
Web
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
MarkerBadge:
Mobile Web
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
MarkerBadge:
Desktop
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
MarkerBadge:
iOS
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
MarkerBadge:
Android
CurrentWalletBalance and PaymentMethodList:
ExpensiPicker:
InlineCodeBlock and PressableWithSecondaryInteraction:
MarkerBadge: