Skip to content

Commit

Permalink
address 0.48 RCTTextView textViewDidChange issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Crawford committed Sep 11, 2017
1 parent 0888f40 commit 4b24ff2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ios/AutogrowTextInputManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ - (void)my_setText:(NSString *)text
[self my_setText:text];

UITextView *textView = [self valueForKey:@"_textView"];
if (textView != nil && [self respondsToSelector:@selector(textViewDidChange:)])
{
dispatch_async(dispatch_get_main_queue(), ^{
[self textViewDidChange:textView];
});
}
// if (textView != nil && [self respondsToSelector:@selector(textViewDidChange:)])
// {
// dispatch_async(dispatch_get_main_queue(), ^{
// [self textViewDidChange:textView];
// });
// }
}
@end

Expand Down

0 comments on commit 4b24ff2

Please sign in to comment.