UNPKG

iamport-react-native

Version:

리액트 네이티브용 아임포트 결제/본인인증 연동 라이브러리

26 lines (23 loc) 766 B
import React from 'react'; import { SafeAreaView } from 'react-native-safe-area-context'; import IMP from 'iamport-react-native'; import { getUserCode } from '../utils'; import Loading from '../Loading'; export default function Certification({ route, navigation }) { const params = route.params.params; const tierCode = route.params.tierCode; const userCode = getUserCode('danal', tierCode, 'certification'); return ( <SafeAreaView style={{ flex: 1, justifyContent: 'center' }}> <IMP.Certification userCode={userCode} tierCode={tierCode} data={params} loading={<Loading />} callback={(response) => navigation.replace('CertificationResult', response) } /> </SafeAreaView> ); }