Skip to content

td/react-native-processinfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A NSProcessInfo wrapper for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 61.6%
  • Objective-C 28.8%
  • JavaScript 9.6%