-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RN-MOBILE] fix line height crash #23507
Conversation
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
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!
Verified the fix and the crash if I just remove the delete style.lineHeight
, nice fix!
Also, thanks for the inline comments explaining the removal, and the added demo html!
Rerunning jobs as the mobile E2E job suffered from the known |
Thanks for the approval! |
The CI job failed again but, since we know for sure that it's not an issue with this PR and there's already another PR to address the issue, I'll go ahead and merge. |
* Fix line-height crash * format fix * Add block example with lineHeight attribute
* Run pod install in react-native-editor/ios/ * [RN-MOBILE] fix line height crash (#23507) * Fix line-height crash * format fix * Add block example with lineHeight attribute * [RNMobile] Correct Buttons block width (#23616) * Fix quote left border color in dark mode. (#23692) * Update react-native-editor package and release notes. * Fix translations for media options * Load block-library lazily after translations occur to fix names of blocks in inserter. * lint fixes * Merge master branch to merge_rnmobile_1.31.1_to_master Co-authored-by: Paul Von Schrottky <[email protected]> Co-authored-by: Marko Savic <[email protected]> Co-authored-by: Luke Walczak <[email protected]> Co-authored-by: Sérgio Estêvão <[email protected]> Co-authored-by: Cameron Voell <[email protected]>
Fixes: wordpress-mobile/WordPress-Android#12211
Description
Current Gutenberg implementation is supporting line-height without unit e.g. 'line-height':1.5
and library which we are using to convert css to react-native requires unit to be included with dimension and that scenario is leading to crash of the Aztec wrapper on Android.
However, we didn't choose to fix (patch) the library as native AztevView doesn't support lineHeight at this moment so focus on this fix was to remove lineHeight from style.
How has this been tested?
Run the Demo app and app shouldn't crash
Checklist: