Skip to content

Commit

Permalink
chore: update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuhe committed Oct 25, 2023
1 parent 70fd880 commit 794edc8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import * as React from 'react';

import { StyleSheet, View, Text } from 'react-native';
import { StyleSheet, View } from 'react-native';
import { AppSecurity } from '@sleiv/react-native-app-security';

export default function App() {
const [result, setResult] = React.useState<number | undefined>();

React.useEffect(() => {
AppSecurity.multiply(3, 7).then(setResult);
AppSecurity.isDebugEnabled().then(console.log);
AppSecurity.isDeviceRooted().then(console.log);
AppSecurity.isIncorrectFingerprint(['']).then(console.log);
}, []);

return (
<View style={styles.container}>
<Text>Result: {result}</Text>
</View>
);
return <View style={styles.container} />;
}

const styles = StyleSheet.create({
Expand Down

0 comments on commit 794edc8

Please sign in to comment.