Last active
May 5, 2017 12:52
-
-
Save mikesurowiec/d27327bfbcfe22a711ee1668f8bf7ec0 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
// AudioManager.m | |
#import "RCTBridgeModule.h" | |
// This registers your module with React Native, so it can be exposed to JS | |
@interface RCT_EXTERN_MODULE(AudioManager, NSObject) | |
RCT_EXTERN_METHOD(setPlaying:(BOOL) value | |
resolver:(RCTPromiseResolveBlock)resolve | |
rejecter:(RCTPromiseRejectBlock)reject | |
) | |
// ... other methods | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment