-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: migrate ref methods to command #3953
Changes from 9 commits
c47c54f
ae89255
cd44e46
ed3c3cf
c620ba1
c7533be
57cf079
6bfb209
0a6c216
be60e18
dd52509
5f14756
a3548fe
c7d29ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#import <React/RCTBridgeModule.h> | ||
@interface RCTDecoderPropertiesModule : NSObject <RCTBridgeModule> | ||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import "RCTDecoderPropertiesModule.h" | ||
|
||
@implementation RCTDecoderPropertiesModule | ||
|
||
RCT_EXPORT_MODULE(RNVDecoderPropertiesModule); | ||
|
||
RCT_EXPORT_METHOD(getWidevineLevel : (RCTPromiseResolveBlock)resolve reject : (RCTPromiseRejectBlock)reject) {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you should al least resolve or reject the Promise... (maybe reject with an error "not implemented") , for these 3 methods There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These functions are meaningless but, acceptable. |
||
|
||
RCT_EXPORT_METHOD(isCodecSupported : (NSString*)mimeType width : (NSInteger*)width height : (NSInteger*)height) {} | ||
|
||
RCT_EXPORT_METHOD(isHEVCSupported : (RCTPromiseResolveBlock)resolve reject : (RCTPromiseRejectBlock)reject) {} | ||
|
||
@end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it really necessary to change the module name ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not required, but I changed it to reduce the chance of duplicates with other library(or core).