Skip to content

starpebble/info-glass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published