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

react-native-device-info

Package Overview
Dependencies
Maintainers
1
Versions
256
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 0.8.1 to 0.8.2

2

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

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

@@ -47,5 +47,28 @@ ## react-native-device-info

On newer versions of React Native (0.18+):
```java
import com.learnium.RNDeviceInfo.*; // <--- import
public class MainActivity extends ReactActivity {
......
/**
* A list of packages used by the app. If the app uses additional views
* or modules besides the default ones, add more packages here.
*/
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RNDeviceInfo(), // <------ add here
new MainReactPackage());
}
}
```
On older versions of React Native:
```java
import com.learnium.RNDeviceInfo.*; // <--- import
public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {

@@ -81,3 +104,3 @@ ......

* If you want to get the device name in Android add this to your AndroidManifest.xml
* If you want to get the device name in Android add this to your AndroidManifest.xml (optional)

@@ -91,2 +114,3 @@ ```xml

* 0.8.2 change deployment target to iOS 8
* 0.8.1 removes unnecessary peerDependencies

@@ -93,0 +117,0 @@ * 0.8.0 tweaks how device locale works on Android. If it's available it will use the toLanguageTag that is more inline with iOS. (See #14)

Sorry, the diff of this file is not supported yet

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