import {
  makeCharacteristicEventListener,
  ReactNativeBluetooth,
} from './lib';

const readCharacteristicValue = characteristic => {
  return new Promise((resolve, reject) => {
    const resultMapper = detail => {
      return {
        ...detail,
        base64Value: detail.value,
        value: new Buffer(detail.value, 'base64'),
      };
    };

    makeCharacteristicEventListener(resolve, reject, ReactNativeBluetooth.CharacteristicRead, characteristic, resultMapper);

    ReactNativeBluetooth.readCharacteristicValue(characteristic);
  });
};

export {
  readCharacteristicValue,
};

@@ -76,16 +76,49 @@
 './lib';
+%0Aimport %7B Buffer %7D from 'buffer';
 %0A%0Aconst 

Add explicit Buffer import