import React, { useEffect } from 'react';
import { StyleSheet, Button, View, TouchableOpacity} from 'react-native';
import { useNavigation } from '@react-navigation/native';
// import { initFaceSDK, detectFace } from '../../utils/FaceRecognition';

function FaceScreen() {
  const navigation = useNavigation();
  const handleDetect = async () => {
    // const result = await detectFace();
    // console.log('人脸识别结果:', result);
  };

  return (
    <View style={{ flex: 1, justifyContent: 'center' }}>
      <TouchableOpacity onPress={handleDetect}>
        <Button title="检测人脸" />
      </TouchableOpacity>
    </View>
  );
}

export default FaceScreen;