Skip to content

Commit

Permalink
Add back textStorage null check just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Apr 13, 2019
1 parent 41e797b commit aa250a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Text/Text/RCTTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ - (void)setTextStorage:(NSTextStorage *)textStorage

- (void)configureLayer
{
if (!_textStorage) {
return;
}

CALayer *currentLayer;

if (self.frame.size.width > RCTTextViewTileSize || self.frame.size.height > RCTTextViewTileSize) {
Expand Down

0 comments on commit aa250a4

Please sign in to comment.