a7b7b41956
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 |
||
---|---|---|
android | ||
examples/OsInfo | ||
ios | ||
.gitignore | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
README.md
os in React Native
node's os API in React Native
This module is used by Peel
Install
-
Create a new react-native project. Check react-native getting started
-
In your project dir:
npm install --save react-native-os
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
PR's welcome!