1.1.1 • Published 2 years ago
@ahsanihsan/react-native-os v1.1.1
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 @ahsanihsan/react-native-os --save
Note for iOS: If your react-native version < 0.40 install with this tag instead:
npm install @ahsanihsan/react-native-os@1.0.3 --save
Link in the native dependency
react-native link @ahsanihsan/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"
}
}
Support for react native 0.69
This package is a fork of aprock and it adds support for react native versions that enable fabric architecture
Contributors
PR's welcome!