Expose RPSystemBroadcastPickerView to ReactNative

This commit is contained in:
Tiago Jacobs
2022-02-12 03:44:09 -03:00
parent 57fb1be486
commit 9edfac1cd6
6 changed files with 76 additions and 27 deletions

View File

@@ -1,8 +0,0 @@
//
// SystemBroadcastPicker.m
// BigBlueButton
//
// Created by Tiago Daniel Jacobs on 12/02/22.
//
#import <Foundation/Foundation.h>

View File

@@ -0,0 +1,27 @@
//
// SystemBroadcastPickerManager.h
// BigBlueButton
//
// Here we export RPSystemBroadcastPickerView button to the react application, so we can add it on screen.
//
// Created by Tiago Daniel Jacobs on 12/02/22.
#import <ReplayKit/ReplayKit.h>
#import <React/RCTViewManager.h>
@interface SystemBroadcastPickerManager : RCTViewManager
@end
@implementation SystemBroadcastPickerManager
RCT_EXPORT_MODULE(BBBN_SystemBroadcastPicker)
- (UIView *)view
{
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
RPSystemBroadcastPickerView *pickerView = [[RPSystemBroadcastPickerView alloc]initWithFrame:CGRectMake(0, 0, 16, 16)];
return pickerView;
}
@end