App.tsx

import React, {useState} from 'react';
import {View, Text, Button, NativeModules} from 'react-native';

const {DdopayNFC} = NativeModules;

const App = () => {
  const [nfcStatus, setNfcStatus] = useState('대기 중...');

  const startNfcService = () => {
    // 바로 아래 '91914545' 부분에 NFC에 담을 데이터 넣을 수 있게 하시면 됩니다
    DdopayNFC.startNfcService('91914545');
    setNfcStatus('NFC 서비스가 시작되었습니다 ^o^');
  };

  return (
    <View>
      <Text>NFC 상태: {nfcStatus}</Text>
      <Button title="NFC 시작" onPress={startNfcService} />
    </View>
  );
};

export default App;