Device Module works correctly when whole module is imported with `* as Device`

Please provide the following:

  1. SDK Version:44.0.6
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Device module works when imported the following way,
import * as Device from "expo-device";

While the example from Expo documentation misleads to this,

import Device from 'expo-device';
import * as Notifications from 'expo-notifications';
import React, { useState, useEffect, useRef } from 'react';
import { Text, View, Button, Platform } from 'react-native';

Reference: Push Notifications Overview - Expo Documentation

Hey @appy-mango, thanks for catching this. A Pull Request would be very welcome if you are feeling up to it.

Thanks for the response, Ofcourse, happy to send a pull request soon.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.