import MyTatvaRnSdkViewAndroid from './MyTatvaRnSdkView.android';
import MyTatvaRnSdkViewIOS from './MyTatvaRnSdkView.ios';
import { Platform } from 'react-native';
import { startCGM, initializeCGMEventListener, removeCGMEventListener, observeAllGlucoseDataHandler, reconnectCGM, helpCGM, observeTransmitterUnbindStatusHandler, observeResetLogoutHandler, getSqliteDBPath, getCgmLogFilePaths } from './CGMConnect';
// ... other imports

// Export the platform-specific component
export const MyTatvaRnSdkView = Platform.select({
  ios: MyTatvaRnSdkViewIOS,
  android: MyTatvaRnSdkViewAndroid,
});

// Export individual functions
export {
  startCGM,
  initializeCGMEventListener,
  removeCGMEventListener,
  observeAllGlucoseDataHandler,
  reconnectCGM,
  helpCGM,
  observeTransmitterUnbindStatusHandler,
  observeResetLogoutHandler,
  getSqliteDBPath,
  getCgmLogFilePaths
};

// Export a default object with everything
export default {
  MyTatvaRnSdkView,
  startCGM,
  initializeCGMEventListener,
  removeCGMEventListener,
  observeAllGlucoseDataHandler,
  reconnectCGM,
  helpCGM,
  observeTransmitterUnbindStatusHandler,
  observeResetLogoutHandler,
  getSqliteDBPath,
  getCgmLogFilePaths
};