node.js os module for react-native
Go to file
Andy Prock 1da9f1af7b 1.1.0 2017-01-16 11:59:50 -08:00
android change android package name 2016-11-08 16:17:25 -08:00
examples/OsInfo Header changes required for 0.40 on ios 2017-01-16 11:57:01 -08:00
ios Header changes required for 0.40 on ios 2017-01-16 11:57:01 -08:00
.gitignore initial commit 2016-11-07 14:10:34 -08:00
.npmignore fix #2, create .npmignore with examples in it 2016-12-15 13:47:33 -08:00
LICENSE initial commit 2016-11-07 14:10:34 -08:00
README.md update docs for RN < 0.40 + ios 2017-01-16 11:59:08 -08:00
index.js Update methods to reflect platform information 2016-12-07 13:05:04 -05:00
package.json 1.1.0 2017-01-16 11:59:50 -08:00

README.md

os in React Native

node's os API in React Native

This module is used by Peel

Install

npm install react-native-os --save

Note for iOS: If your react-native version < 0.40 install with this tag instead:

npm install react-native-os@1.0.3 --save
react-native link react-native-os

Step 3 Profit

Usage

package.json

only if you want to write require('os') in your javascript

{
  "react-native": {
    "os": "react-native-os"
  }
}

Contributors

Andy Prock

PR's welcome!