react-native-bynn-sdk
Version:
Bynn Mobile SDK for React Native - Identity verification and KYC
1 lines • 3.29 kB
JavaScript
const _0x40b203=_0xabd9;(function(_0x560b81,_0x2b6566){const _0x239eb1=_0xabd9,_0x4d3c6c=_0x560b81();while(!![]){try{const _0x52f7d7=-parseInt(_0x239eb1(0x1bd))/0x1*(-parseInt(_0x239eb1(0x1bc))/0x2)+parseInt(_0x239eb1(0x1c8))/0x3+-parseInt(_0x239eb1(0x1ba))/0x4+parseInt(_0x239eb1(0x1c6))/0x5*(parseInt(_0x239eb1(0x1b6))/0x6)+-parseInt(_0x239eb1(0x1bf))/0x7*(parseInt(_0x239eb1(0x1c2))/0x8)+parseInt(_0x239eb1(0x1c5))/0x9+-parseInt(_0x239eb1(0x1bb))/0xa;if(_0x52f7d7===_0x2b6566)break;else _0x4d3c6c['push'](_0x4d3c6c['shift']());}catch(_0x2681d1){_0x4d3c6c['push'](_0x4d3c6c['shift']());}}}(_0x3721,0x74efd));import _0x1f33a6,{useRef,useState}from'react';function _0xabd9(_0x6d95ad,_0xd02cdc){const _0x372160=_0x3721();return _0xabd9=function(_0xabd93,_0x4b7975){_0xabd93=_0xabd93-0x1b5;let _0x38ebe0=_0x372160[_0xabd93];return _0x38ebe0;},_0xabd9(_0x6d95ad,_0xd02cdc);}import{StyleSheet,View,ActivityIndicator}from'react-native';function _0x3721(){const _0xc75740=['4hRjZzU','442607HaNXnH','Analysis\x20complete','303037LPQgwg','webview','data','16rjjuAu','WebView\x20error:','error','8448012BXKdAa','55iaqmUC','nativeEvent','702768BGMMKD','container','center','------------->','409008GgFuYm','100%','#FFFFFF','log','547556MPBicb','21055420tDGkMr'];_0x3721=function(){return _0xc75740;};return _0x3721();}import{WebView}from'react-native-webview';const LivenessWebView=({url:url='https://example.com/liveness-check',onComplete:_0x460750,onError:_0x55f2b6})=>{const _0x5a16df=_0xabd9,_0x2f5be7=useRef(null),[_0x267f4d,_0xbe3584]=useState(!![]);console[_0x5a16df(0x1b9)]({'url':url});const _0x18c578=_0x2c8b75=>{const _0x7f26a4=_0x5a16df;try{const _0x184918=JSON['parse'](_0x2c8b75[_0x7f26a4(0x1c7)][_0x7f26a4(0x1c1)]);console[_0x7f26a4(0x1b9)](_0x7f26a4(0x1b5),{'data':_0x184918}),_0x184918===_0x7f26a4(0x1be)?_0x460750&&_0x460750():_0x55f2b6&&_0x55f2b6();}catch(_0xa5dd17){console[_0x7f26a4(0x1c4)]('Error\x20parsing\x20message\x20from\x20WebView:',_0xa5dd17),_0x55f2b6&&_0x55f2b6();}},_0x441258=_0x33c69a=>{console['log']('Navigation\x20state\x20changed:',_0x33c69a['url']);},_0x584d79=_0x59f19e=>{const _0x1beb90=_0x5a16df;console[_0x1beb90(0x1c4)](_0x1beb90(0x1c3),_0x59f19e),_0x55f2b6&&_0x55f2b6();};return _0x1f33a6['createElement'](View,{'style':styles[_0x5a16df(0x1c9)]},_0x1f33a6['createElement'](WebView,{'ref':_0x2f5be7,'source':{'uri':url},'style':styles[_0x5a16df(0x1c0)],'onMessage':_0x18c578,'onNavigationStateChange':_0x441258,'onError':_0x584d79,'onLoadStart':()=>_0xbe3584(!![]),'onLoadEnd':()=>_0xbe3584(![]),'javaScriptEnabled':!![],'domStorageEnabled':!![],'startInLoadingState':!![],'allowsInlineMediaPlayback':!![],'mediaPlaybackRequiresUserAction':![],'allowsFullscreenVideo':!![]}),_0x267f4d&&_0x1f33a6['createElement'](View,{'style':styles['loadingContainer']},_0x1f33a6['createElement'](ActivityIndicator,{'size':'large','color':'#0000ff'})));},styles=StyleSheet['create']({'container':{'flex':0x1,'height':_0x40b203(0x1b7),'width':_0x40b203(0x1b7),'backgroundColor':_0x40b203(0x1b8)},'webview':{'flex':0x1,'width':_0x40b203(0x1b7)},'loadingContainer':{'position':'absolute','top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'justifyContent':_0x40b203(0x1ca),'alignItems':'center','backgroundColor':'rgba(255,\x20255,\x20255,\x200.7)'}});export default LivenessWebView;