Created
February 25, 2017 04:47
-
-
Save mikesurowiec/b8abe9edb9302304caff870058e08f4f 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.swift | |
import Foundation | |
@objc(AudioManager) | |
class AudioManager: RCTEventEmitter { | |
// ... | |
@objc func setPlaying(_ shouldPlay: Bool, | |
resolver resolve: RCTPromiseResolveBlock, | |
rejecter reject: RCTPromiseRejectBlock) -> Void { | |
let isPlaying = setPlaying(shouldPlay) | |
resolve(isPlaying) | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment