react-native-device-info
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29857
150