import {Platform} from 'react-native';

import type * as CameraEngineType from './CameraEngine.ios';

const CameraEngineModule: typeof CameraEngineType =
  Platform.OS === 'ios'
    ? require('./CameraEngine.ios')
    : require('./CameraEngine.android');

export const CameraEngine = CameraEngineModule.CameraEngine;
export type LensInfo = CameraEngineType.LensInfo;
