UNPKG

react-native-bynn-sdk

Version:

Bynn Mobile SDK for React Native - Identity verification and KYC

1 lines 4.09 kB
(function(_0x3352e2,_0x40df57){const _0x5e4d43=_0x4186,_0x3a0ae6=_0x3352e2();while(!![]){try{const _0x22a175=-parseInt(_0x5e4d43(0x78))/0x1*(-parseInt(_0x5e4d43(0x88))/0x2)+parseInt(_0x5e4d43(0x86))/0x3+parseInt(_0x5e4d43(0x7d))/0x4*(parseInt(_0x5e4d43(0x7a))/0x5)+-parseInt(_0x5e4d43(0x8b))/0x6+parseInt(_0x5e4d43(0x73))/0x7*(parseInt(_0x5e4d43(0x87))/0x8)+-parseInt(_0x5e4d43(0x79))/0x9*(parseInt(_0x5e4d43(0x8a))/0xa)+-parseInt(_0x5e4d43(0x76))/0xb;if(_0x22a175===_0x40df57)break;else _0x3a0ae6['push'](_0x3a0ae6['shift']());}catch(_0x1d6ba9){_0x3a0ae6['push'](_0x3a0ae6['shift']());}}}(_0x4dc1,0x29f46));import _0x24f486 from'react';import{View,Text,Alert,SafeAreaView,Image,TouchableOpacity}from'react-native';import{useBynn}from'../BynnProvider';function _0x4dc1(){const _0x54c4d8=['768498IMqJzg','log','center','No\x20session','alert','7sNqtOB','500','contain','4170133lRzhJf','message','5LDzwQK','35811juNFLC','1135SSIDsq','left','onError','4884orGzXi','#FFFFFF','retry_button','Conscent','apiKey','600','90%','Verify\x20ID','#15181E','748455uEgnqt','899848JvrZNA','125780qwbJWv','createElement','690JUissy'];_0x4dc1=function(){return _0x54c4d8;};return _0x4dc1();}import{useBynnSession}from'../useBynnSession';function _0x4186(_0x2d7cfd,_0x15f9d4){const _0x4dc1a4=_0x4dc1();return _0x4186=function(_0x418617,_0xf237bc){_0x418617=_0x418617-0x70;let _0x42f27d=_0x4dc1a4[_0x418617];return _0x42f27d;},_0x4186(_0x2d7cfd,_0x15f9d4);}import{submitConsent}from'../api/index';import{Font,Height,Width}from'../utils/dimensions';import{useTranslation}from'react-i18next';import'../i18n';const VerificationFailView=()=>{const _0x53a936=_0x4186,{options:_0x52014d}=useBynn(),{sessionId:_0x461fee}=useBynnSession(),{t:_0x233a4e}=useTranslation();console[_0x53a936(0x8c)](_0x53a936(0x80),_0x461fee);const _0x2c29e0=async()=>{const _0xa831b3=_0x53a936;try{if(!_0x461fee)throw new Error(_0xa831b3(0x71));await submitConsent(_0x461fee,_0x52014d[_0xa831b3(0x81)]);}catch(_0x21f26e){console['error'](_0x21f26e),Alert[_0xa831b3(0x72)]('Error',_0x21f26e[_0xa831b3(0x77)]),_0x52014d[_0xa831b3(0x7c)]?.(_0x21f26e);}};return _0x24f486['createElement'](SafeAreaView,{'style':{'flex':0x1,'alignItems':_0x53a936(0x70),'backgroundColor':_0x53a936(0x7e)}},_0x24f486['createElement'](Text,{'style':{'fontSize':Font(0x10),'fontWeight':'500','lineHeight':Height(0x18),'alignSelf':_0x53a936(0x70),'color':_0x53a936(0x85)}},_0x53a936(0x84)),_0x24f486['createElement'](Text,{'style':{'fontSize':Font(0x19),'marginBottom':Height(0x14),'fontWeight':_0x53a936(0x82),'lineHeight':Height(0x20),'textAlign':_0x53a936(0x7b),'alignSelf':'flex-start','marginLeft':'5%','paddingHorizontal':Width(0x5),'marginTop':Height(0xf)}},'Unable\x20to\x20Verify\x20ID\x20Document'),_0x24f486['createElement'](Text,{'style':{'fontSize':Font(0x10),'fontWeight':'400','lineHeight':Height(0x18),'color':'#374255','width':_0x53a936(0x83)}},_0x233a4e('detector_unrecognized_text')),_0x24f486[_0x53a936(0x89)](Image,{'source':require('../assets/cardSucess.png'),'resizeMode':_0x53a936(0x75),'style':{'height':Height(0xc7),'width':Width(0x109),'marginVertical':Height(0x14)}}),_0x24f486['createElement'](Image,{'source':require('../assets/cardFail.png'),'resizeMode':_0x53a936(0x75),'style':{'height':Height(0xc7),'width':Width(0x109)}}),_0x24f486[_0x53a936(0x89)](View,{'style':{'justifyContent':_0x53a936(0x70),'alignItems':'center','position':'absolute','bottom':Height(0x1e)}},_0x24f486['createElement'](TouchableOpacity,{'onPress':_0x2c29e0,'style':{'height':Height(0x38),'width':Width(0x168),'backgroundColor':_0x53a936(0x85),'justifyContent':'center','alignItems':'center','borderRadius':Height(0x38),'marginVertical':Height(0xa),'flexDirection':'row','columnGap':0x5}},_0x24f486['createElement'](Image,{'source':require('../assets/reload.png'),'resizeMode':_0x53a936(0x75),'style':{'height':Height(0x10),'width':Height(0x10)}}),_0x24f486['createElement'](Text,{'style':{'color':'#FFFFFF','fontSize':Font(0x10),'lineHeight':Height(0x18),'fontWeight':_0x53a936(0x74)}},_0x233a4e(_0x53a936(0x7f))))));};export default VerificationFailView;