New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-device-info

Package Overview
Dependencies
Maintainers
5
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-device-info - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

3

CHANGELOG.md

@@ -5,2 +5,5 @@ ## Release Notes

### 2.1.3
* fix: add missing devices to devices with notch list (https://github.com/react-native-community/react-native-device-info/pull/702)
### 2.1.2

@@ -7,0 +10,0 @@ * build(Android): constrain play services dependency to pre-AndroidX 16.1.0 (https://github.com/react-native-community/react-native-device-info/pull/693)

@@ -84,2 +84,10 @@ /**

brand: 'Huawei',
model: 'Mate 20 Lite',
},
{
brand: 'Huawei',
model: 'Mate 20 Pro',
},
{
brand: 'Huawei',
model: 'Nova 3',

@@ -120,3 +128,19 @@ },

{
brand: 'Motorola',
model: 'Moto g7 Play',
},
{
brand: 'Motorola',
model: 'Moto g7 Power',
},
{
brand: 'Motorola',
model: 'One',
},
{
brand: 'Nokia',
model: '5.1 Plus',
},
{
brand: 'Nokia',
model: '6.1 Plus',

@@ -129,2 +153,6 @@ },

{
brand: 'Nokia',
model: '8.1',
},
{
brand: 'OnePlus',

@@ -131,0 +159,0 @@ model: '6',

2

package.json
{
"name": "react-native-device-info",
"version": "2.1.2",
"version": "2.1.3",
"description": "Get device information using react-native",

@@ -5,0 +5,0 @@ "main": "deviceinfo.js",

@@ -36,2 +36,12 @@ # react-native-device-info

> ⚠️ As of version 2.1.1 the package can be loaded async to improve start up time on Android [Refer to this PR for more information](https://github.com/react-native-community/react-native-device-info/pull/680)
```java
@Override
public List<ReactPackage> createAdditionalReactPackages() {
return Arrays.<ReactPackage>asList(
new RNDeviceInfo(true), // Pass true to load the constants asynchronously on start up, default is false
);
}
```
> ⚠️ If you are on React Native > 0.47, you must use version 0.11.0 of this library or higher

@@ -59,6 +69,28 @@

Add the following line to your build targets in your `Podfile`
Add the following lines to your build targets in your `Podfile`
`pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'`
```
pod 'React', :path => '../node_modules/react-native'
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
# React-Native is not great about React double-including from the Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
# It removes React & Yoga from the Pods project, as it is already included in the main project.
targets_to_ignore = %w(React yoga)
if targets_to_ignore.include? target.name
target.remove_from_project
end
end
end
```
Then run `pod install`

@@ -65,0 +97,0 @@

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