Created
August 16, 2023 14:21
-
-
Save tanner-west/47b9c3c3a525bff821f78eb74df7dcb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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