react-native-apple-shazamkit
Version:
🎵 Powerful music recognition for React Native using Apple's ShazamKit. Identify songs, get metadata, and integrate with Apple Music seamlessly.
37 lines • 1.12 kB
JavaScript
import { NativeModulesProxy, Platform, requireNativeModule, } from "expo-modules-core";
let nativeModule = null;
if (Platform.OS === "ios") {
nativeModule = NativeModulesProxy.ExpoShazamKit;
}
else if (Platform.OS === "android") {
nativeModule = requireNativeModule("ExpoShazamKit");
}
export default nativeModule || {
isAvailable() {
return false;
},
hello() {
return "Hello from fallback implementation";
},
helloWithName(name) {
return `Hello ${name} from fallback implementation`;
},
startListening(developerToken) {
return Promise.reject("Not implemented on this platform");
},
stopListening() {
return Promise.reject("Not implemented on this platform");
},
setValueAsync(value) {
return Promise.reject("Not implemented on this platform");
},
addListener() {
// Nothing to do; unsupported platform.
return Promise.resolve();
},
removeListeners() {
// Nothing to do; unsupported platform.
return Promise.resolve();
},
};
//# sourceMappingURL=ExpoShazamKit.js.map