react-native-processinfo

0.0.3 • Public • Published

Exposes iOS's NSProcessInfo for React Native

This exposes the NSProcessInfo environment to React Native.

I use this to grab environment variables passed-in from XCode UI Tests, so my project can tell when it's running as a UI Test.

iOS Usage

import ProcessInfo from 'react-native-processinfo';

ProcessInfo.environment.HOME
ProcessInfo.environment.SIMULATOR_DEVICE_NAME

Setup

Install the package:

$ npm install react-native-processinfo --save
$ rnpm link react-native-processinfo

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    98
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    98
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i react-native-processinfo

Weekly Downloads

98

Version

0.0.3

License

MIT

Last publish

Collaborators

  • mikelambert