Get Device Information

#1

How to get device information?

#2

Hey @nageshkulkarni17 there is actually really good documentation on this!

EDITED 4/17/2018: https://facebook.github.io/react-native/docs/platform-specific-code.html

You can get information such as the OS as well as the version number.

Hope this helps you out :slight_smile:

#3

Hello, If I want to take device info such us device name, version, model. is this possible.
In fact, I want to have something like this : Samsung Galaxy S8 or Iphone X

#4

@nivo_dev You can refer to this https://docs.expo.io/versions/latest/sdk/constants.html

1 Like
#5

@jimmylee Thanks!!!.

#6

Hey @nageshkulkarni17, I can get the device model only in IOS, is there any solution for android?

#7

Hi @toavina, I tried with “Constants.deviceName” in Android platform. It showed me the model name.

1 Like
#8

I think it’s not the model name. “Constants.deviceName” returns for example ‘C5560’ but I want something like “Sony Xperia ZR C5560”. In IOS, I can get it using Contants.model but annywhere for android

#9

When I checked in my android phone I got like this “Moto G4”.

2 Likes
closed #10

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