info-glass

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i info-glass

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • starpebble