Skip to content

Instantly share code, notes, and snippets.

@tanner-west
Created August 16, 2023 14:21
Show Gist options
  • Save tanner-west/47b9c3c3a525bff821f78eb74df7dcb0 to your computer and use it in GitHub Desktop.
Save tanner-west/47b9c3c3a525bff821f78eb74df7dcb0 to your computer and use it in GitHub Desktop.
//
// TextViewManager.m
// SwiftViewSchool
//
// Created by Tanner West on 8/16/23.
//
#import <UIKit/UIKit.h>
#import <React/RCTViewManager.h>
@interface RNTTextViewManager : RCTViewManager
@end
@implementation RNTTextViewManager
RCT_EXPORT_MODULE(RNTTextView)
- (UIView *)view
{
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 500, 250)];
textView.text = @"Hello, iOS!";
textView.font = [UIFont systemFontOfSize:48];
textView.textColor = [UIColor purpleColor];
return [textView init];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment