Th. Ma.
Th. Ma.

Reputation: 9464

How can I detect the device running my application with React Native?

I would like to use different styles depending on the device running an iOS application.

How could I detect which device is running the application?

Upvotes: 0

Views: 5816

Answers (1)

Th. Ma.
Th. Ma.

Reputation: 9464

Device detection is enabled by react-native-device package available from npm

npm install react-native-device --save

See also: https://github.com/GertjanReynaert/react-native-device

Upvotes: 1

Related Questions