react-native-device-info - v15.0.1
    Preparing search index...

    Function useIsEmulator

    • React hook that resolves as soon as the emulator detection result is known.

      Compatibility: iOS ✅ Android ✅ Windows ✅ Web ❌ visionOS ✅

      Returns AsyncHookResult<boolean>

      function IsEmulatorCallout() {
      const { result: emulator } = useIsEmulator();
      return emulator ? <Text>Running on emulator</Text> : null;
      }