# aerogear-react-native-core

> Get your device's OS SDK version

Latest version **0.0.2** (published 2018-03-21) · Apache license · 0 weekly downloads

## Install

```sh
npm install aerogear-react-native-core
pnpm add aerogear-react-native-core
yarn add aerogear-react-native-core
bun add aerogear-react-native-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-03-21 |
| First published | 2018-03-21 |
| Weekly downloads | 0 |
| License | Apache |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jose Miguel Gallas Olmedo |
| Maintainers | josemigallas |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/aerogear-react-native-core
- npm.io page: https://npm.io/package/aerogear-react-native-core

## Recent versions

- 0.0.2 (latest) — 2018-03-21
- 0.0.1 — 2018-03-21

## README

# aerogear-react-native-core

## Getting started

`$ npm install aerogear-react-native-core --save`

### Mostly automatic installation

`$ react-native link aerogear-react-native-core`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `aerogear-react-native-core` and add `MobileCore.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libMobileCore.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.MobileCorePackage;` to the imports at the top of the file
  - Add `new MobileCorePackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':aerogear-react-native-core'
  	project(':aerogear-react-native-core').projectDir = new File(rootProject.projectDir, 	'../node_modules/aerogear-react-native-core/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':aerogear-react-native-core')
  	```

## Usage
```javascript
import MobileCore from 'aerogear-react-native-core';

const SDK = MobileCore.getDeviceMetrics();
```

---
_Source: https://npm.io/package/aerogear-react-native-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
