Skip to content

Commit

Permalink
update example app
Browse files Browse the repository at this point in the history
  • Loading branch information
acro5piano authored and mikehardy committed Nov 3, 2019
1 parent dd3bdd4 commit 2fc0a8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/App.js
Expand Up @@ -7,7 +7,7 @@
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/

import React, {Component, Fragment} from 'react';
import React, {Component} from 'react';
import {ScrollView, StyleSheet, Text, SafeAreaView} from 'react-native';
import DeviceInfo from 'react-native-device-info';
import {
Expand All @@ -19,6 +19,7 @@ import {
useFirstInstallTime,
useDeviceName,
useHasSystemFeature,
useIsEmulator,
} from 'react-native-device-info';

const FunctionalComponent = () => {
Expand All @@ -28,13 +29,15 @@ const FunctionalComponent = () => {
const firstInstallTime = useFirstInstallTime();
const deviceName = useDeviceName();
const hasSystemFeature = useHasSystemFeature('amazon.hardware.fire_tv');
const isEmulator = useIsEmulator();
const deviceJSON = {
batteryLevel,
batteryLevelIsLow,
powerState,
firstInstallTime,
deviceName,
hasSystemFeature,
isEmulator,
};

return (
Expand Down

0 comments on commit 2fc0a8a

Please sign in to comment.