Skip to content

Commit

Permalink
docs: use destructuring import in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Taym95 authored and mikehardy committed Aug 29, 2019
1 parent 9860dfa commit 9e59100
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import React, {Component} from 'react';
import {Platform, ScrollView, StyleSheet, Text, View, SafeAreaView} from 'react-native';
import DeviceInfo from 'react-native-device-info';
import {getUniqueID, getManufacturer, getBrand, getModel, getDeviceId} from 'react-native-device-info';

const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
Expand All @@ -34,11 +35,11 @@ export default class App extends Component<Props> {

try {

deviceJSON.uniqueID = DeviceInfo.getUniqueID();
deviceJSON.manufacturer = DeviceInfo.getManufacturer();
deviceJSON.brand = DeviceInfo.getBrand();
deviceJSON.model = DeviceInfo.getModel();
deviceJSON.deviceId = DeviceInfo.getDeviceId();
deviceJSON.uniqueID = getUniqueID();
deviceJSON.manufacturer = getManufacturer();
deviceJSON.brand = getBrand();
deviceJSON.model = getModel();
deviceJSON.deviceId = getDeviceId();
deviceJSON.systemName = DeviceInfo.getSystemName();
deviceJSON.systemVersion = DeviceInfo.getSystemVersion();
deviceJSON.buildId = DeviceInfo.getBuildId();
Expand Down

0 comments on commit 9e59100

Please sign in to comment.