-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Pass the ol start and reversed to native RichText too #39354
Conversation
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
Interesting, there's a native mobile E2E test failing. Will look into this. EDIT: Flakyness. |
OK, looks like the not-relevant Admin failing tests are now fixed so, feel free to review this when you find the chance @geriux , thanks! |
Of course, will do 👍 |
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.
LGTM! I tested this on both iOS and Android, the order functionality works as expected. I also tried splitting lists and it works correctly. 🚀
The renaming makes sense 👍
What?
Fixes #30623
Why?
The changes in this PR are needed to fix the issue.
How?
This PR passes the
start
andreversed
ordered list block props down to the native mobile RichText component.Also note, I renamed a few of the
start
,end
variables to not shadow thestart
coming in as the prop. I kept the incoming prop asstart
as that's the variable name used for the starting number of the list elsewhere in the codebase. Open to revising the approach.Testing Instructions
1.
,2.
,3.
in orderReverse list numbering
toggle3.
,2.
,1.
in order (reversed than before)Start value
field and put a number like8
8.
,7.
,6.
in order (counting down from the inputted start value)