Skip to content

Instantly share code, notes, and snippets.

@tanner-west
Created August 16, 2023 19:51
Show Gist options
  • Save tanner-west/0304bf1463801cf42a50ff0bcbdc9c9c to your computer and use it in GitHub Desktop.
Save tanner-west/0304bf1463801cf42a50ff0bcbdc9c9c 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>
#import "SwiftViewSchool-Swift.h"
@interface RNTTextViewManager : RCTViewManager
@end
@implementation RNTTextViewManager
RCT_EXPORT_MODULE(RNTTextView)
- (UIView *)view
{
TextViewProvider *provider = [[TextViewProvider alloc] init];
UITextView *textView = [provider createTextView];
return textView;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment