'use strict';

var RNAudioPlayer = require('NativeModules').RNAudioPlayer;

var AudioPlayer = {
  play(fileName: string) {
    RNAudioPlayer.play(fileName);
  }
};

module.exports = AudioPlayer;

'use strict';

var RNAudioPlayer = require('react-native').NativeModules.RNAudioPlayer;

var AudioPlayer = {
  play(fileName: string) {
    RNAudioPlayer.play(fileName);
  }
};

module.exports = AudioPlayer;

FIx path to native modules
FIx path to native modules

React-Native packager error `Unable to resolve module NativeModules from .../node_modules/react-native-audioplayer/AudioPlayer.js`
This seems to fix it.