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
4
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.9.3 to 0.9.4

RNDeviceInfo/DeviceUID.h

3

deviceinfo.js

@@ -11,2 +11,5 @@ /**

},
getInstanceID: function() {
return RNDeviceInfo.instanceId;
},
getDeviceId: function () {

@@ -13,0 +16,0 @@ return RNDeviceInfo.deviceId;

2

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

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

@@ -1,5 +0,1 @@

## MAINTAINERS WANTED!
Unfortunately, I don't have the time to continue maintaining this module. If you would like to take over, please open an issue or get in touch with me (@rebeccahughes).
## react-native-device-info

@@ -11,2 +7,10 @@

## Installation via [`rnpm`](https://github.com/rnpm/rnpm)
```shell
rnpm install react-native-device-info
```
`rnpm` will install (--save) this module then linking for react-native, so you don't have to link for each platforms manually as the following.
## Installation

@@ -52,9 +56,34 @@

* register module (in MainActivity.java)
* register module
On React Native 0.18+:
On React Native 0.29+:
in MainApplication.java:
```java
import com.learnium.RNDeviceInfo.RNDeviceInfo; // <--- import
public class MainApplication extends Application implements ReactApplication {
......
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RNDeviceInfo(), // <---- add here
new MainReactPackage()
);
}
......
}
```
On React Native 0.18-0.28:
in MainActivity.java:
```java
import com.learnium.RNDeviceInfo.RNDeviceInfo; // <--- import
public class MainActivity extends ReactActivity {

@@ -130,2 +159,4 @@ ......

console.log("Device Country", DeviceInfo.getDeviceCountry()); // e.g US
console.log("App Instance ID", DeviceInfo.getInstanceID()); // ANDROID ONLY - see https://developers.google.com/instance-id/
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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