Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): adopt v5 navigation and native iPad columns #16733

Mergedjuliusmarmingemerged 39 commits intomain fromrefs/pull/16733/headmerged by juliusmarminge View on GitHub

Showing 47 changed files with 57 additions and 6 deletions (loading 43).

x
0 of 47 viewed, 47 left
0 additions and 0 deletionsapps/mobile/deps/react-native-screens-5.0.0-t3.7.tgzAdded
View file

Binary file not shown.

9 additions and 6 deletionsapps/mobile/modules/t3-markdown-text/ios/T3MarkdownText.mmModified
View file
@@ -287,6 +287,7 @@
UILongPressGestureRecognizer *_longPressGestureRecognizer;
UITapGestureRecognizer *_pressGestureRecognizer;
NSArray *_contextAccessibilityElements;
+ BOOL _textLayoutNeedsUpdate;
​
+ (ComponentDescriptorProvider)componentDescriptorProvider
@@ -384,16 +385,18 @@
_textView.frame = CGRectZero;
_textView.attributedText = nil;
_contextAccessibilityElements = nil;
+ _textLayoutNeedsUpdate = YES;
​
- (void)layoutSubviews
[super layoutSubviews];
- // _textView's frame is assigned inside drawRect, which only fires when
- // state changes. Trigger a redraw whenever the host frame moves out from
- // under it (rotation, parent relayout) so the text view resizes and
- // onTextLayout re-fires with the new line wrapping.
+ // Resize during UIKit's layout pass. Doing this in drawRect can leave the
+ // text view's drawing surface clipped to its previous width after a pane
+ // expands, even though TextKit has already rewrapped the lines.
if (!CGRectEqualToRect(_textView.frame, _view.frame)) {