import { useEffect } from 'react'
import { View, Text, StyleSheet } from 'react-native'

import { bleSDK } from '../../ble/sdk/BleSDK'

export default function SDKEntry() {
  useEffect(() => {
    bleSDK.initialize()
    console.log('[DuooomiBleSDK] Ready')
  }, [])

  // Brownfield 模式下这个 UI 通常不可见，
  // 但可以用于调试或显示 SDK 状态
  return (
    <View style={styles.container}>
      <Text style={styles.text}>Duooomi BLE SDK Running</Text>
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#000',
  },
  text: {
    color: '#fff',
    fontSize: 16,
  },
})
