1import Constants, { ExecutionEnvironment } from 'expo-constants';
2import { requireNativeModule } from 'expo-modules-core';
3
4let ExpoHead: null | any = null;
5
6if (Constants.executionEnvironment === ExecutionEnvironment.Bare) {
7  // Loads the native module object from the JSI or falls back to
8  // the bridge module (from NativeModulesProxy) if the remote debugger is on.
9  ExpoHead = requireNativeModule('ExpoHead');
10}
11
12export { ExpoHead };
13