Skip to content

Commit

Permalink
[RNMobile] Fix visual glitch when loading Aztec view (#30838)
Browse files Browse the repository at this point in the history
* Initialize Aztec view with zero size

* Update packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift

Co-authored-by: Paul Von Schrottky <[email protected]>

Co-authored-by: Paul Von Schrottky <[email protected]>
  • Loading branch information
fluiddot and guarani authored Apr 21, 2021
1 parent e65038a commit ee84e94
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class RCTAztecView: Aztec.TextView {
textContainerInset = .zero
contentInset = .zero
textContainer.lineFragmentPadding = 0
frame.size = .zero
addPlaceholder()
textDragInteraction?.isEnabled = false
storage.htmlConverter.characterToReplaceLastEmptyLine = Character(.zeroWidthSpace)
Expand Down

0 comments on commit ee84e94

Please sign in to comment.