1.0.4 • Published 6 years ago

info-glass v1.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

info-glass

A pure javascript react native component to get info about a mobile device, e.g. OS, manufacturer, and model.

npm version

Description

info-glass is a react native component that provides device info. info-glass can provide:

  • OS name and version
  • manufacturer
  • model

to a react-native app. The component is written in javascript, convenient for some react native apps.

The component asynchronously provides device info to a parent component.

Example Usage

See the example app InfoGlassExampleApp in the examples directory.

JSX code snippet from the example app ...

<View style={styles.container}>
  <Text>🔍 InfoGlass Example App 💡</Text>
  <Text>{OS}</Text>
  <Text>{Manufacturer}</Text>
  <Text>{Model}</Text>
  <InfoGlass
    callback={this._callback}
  />
</View>

Screenshots of the example app.

iOS

Screen Shot

Android

Screen Shot

Questions

Leave comments or bug reports here on github in the project's issues.

On GitHub

https://github.com/starpebble/info-glass