node.js os module for react-native
Go to file
Giles Van Gruisen a7b7b41956 Update methods to reflect platform information
This updates the implementations of the os.type() and os.platform()
methods to reflect more accurate system/platform information.

os.type() has been updated to simply return 'React Native'
os.platform() has been updated to return the current platform, either
'android', 'ios', or whatever else might be returned by Platform.OS
2016-12-07 13:05:04 -05:00
android change android package name 2016-11-08 16:17:25 -08:00
examples/OsInfo change android package name 2016-11-08 16:17:25 -08:00
ios initial commit 2016-11-07 14:10:34 -08:00
.gitignore initial commit 2016-11-07 14:10:34 -08:00
LICENSE initial commit 2016-11-07 14:10:34 -08:00
README.md initial commit 2016-11-07 14:10:34 -08:00
index.js Update methods to reflect platform information 2016-12-07 13:05:04 -05:00
package.json 1.0.2 2016-11-08 16:17:31 -08:00

README.md

os in React Native

node's os API in React Native

This module is used by Peel

Install

npm install --save react-native-os
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!