Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-device

Package Overview
Dependencies
Maintainers
36
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-device

A universal module that gets physical information about the device running the application

  • 7.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
210K
decreased by-14.06%
Maintainers
36
Weekly downloads
 
Created

What is expo-device?

The expo-device package provides access to device information such as the device model, manufacturer, operating system, and more. It is useful for tailoring the user experience based on the device's capabilities and characteristics.

What are expo-device's main functionalities?

Get Device Model

This feature allows you to retrieve the model name of the device. It can be useful for debugging or for providing device-specific functionality.

import * as Device from 'expo-device';

console.log(Device.modelName);

Get Device Manufacturer

This feature allows you to get the manufacturer of the device. This can be useful for analytics or for customizing the user experience based on the device manufacturer.

import * as Device from 'expo-device';

console.log(Device.manufacturer);

Get Operating System

This feature allows you to retrieve the name of the operating system running on the device. It can be useful for tailoring functionality or UI based on the OS.

import * as Device from 'expo-device';

console.log(Device.osName);

Check if Device is a Tablet

This feature allows you to check if the device is a tablet. This can be useful for adjusting layouts or features for larger screens.

import * as Device from 'expo-device';

console.log(Device.isTablet);

Other packages similar to expo-device

Keywords

FAQs

Package last updated on 22 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc