Expose RPSystemBroadcastPickerView to ReactNative
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
//
|
||||
// SystemBroadcastPicker.m
|
||||
// BigBlueButton
|
||||
//
|
||||
// Created by Tiago Daniel Jacobs on 12/02/22.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
27
ios/ReactModules/SystemBroadcastPickerManager.m
Normal file
27
ios/ReactModules/SystemBroadcastPickerManager.m
Normal 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
|
||||
Reference in New Issue
Block a user