Bootstrap
This commit is contained in:
32
example/src/App.tsx
Normal file
32
example/src/App.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { StyleSheet, View, Text } from 'react-native';
|
||||
import VisionCamera from 'react-native-vision-camera';
|
||||
|
||||
|
||||
export default function App() {
|
||||
const [result, setResult] = React.useState<number | undefined>();
|
||||
|
||||
React.useEffect(() => {
|
||||
VisionCamera.multiply(3, 7).then(setResult);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>Result: {result}</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
box: {
|
||||
width: 60,
|
||||
height: 60,
|
||||
marginVertical: 20,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user