axeldelafosse / react-native-os

Use Node.js OS in your React Native app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Link in the native dependency

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!

About

Use Node.js OS in your React Native app

License:MIT License


Languages

Language:Java 54.6%Language:Objective-C 33.6%Language:JavaScript 7.8%Language:Ruby 4.0%