From 6703bf7d45988d3010ae297156db2120a7972685 Mon Sep 17 00:00:00 2001 From: Tanguy Antoine Date: Thu, 23 May 2019 12:40:34 +0200 Subject: [PATCH] fix: move variables around and trigger deploy --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 18fb69d8..47940cba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,13 +3,13 @@ */ import { NativeModules, DeviceEventEmitter, NativeEventEmitter, Platform } from 'react-native' -const NativeMusicControl = NativeModules.MusicControlManager // @ts-ignore import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource' // @ts-ignore import constants from './constants' import { Command } from './types' +const NativeMusicControl = NativeModules.MusicControlManager let handlers: { [key in Command]?: (value: any) => void } = {} let listenerOfNativeMusicControl: any = null const IS_ANDROID = Platform.OS === 'android' @@ -88,7 +88,7 @@ const MusicControl = { }) NativeMusicControl.stopControl() }, - handleAudioInterruptions: function(enable: boolean): void { + handleAudioInterruptions: function(enable: boolean): void { NativeMusicControl.observeAudioInterruptions(enable) } }