react-native-bynn-sdk
Version:
Bynn Mobile SDK for React Native - Identity verification and KYC
1 lines • 1.87 kB
JavaScript
(function(_0x16146c,_0x19db85){const _0x1b646e=_0x57b1,_0x371840=_0x16146c();while(!![]){try{const _0x461a17=parseInt(_0x1b646e(0xdc))/0x1*(-parseInt(_0x1b646e(0xdb))/0x2)+-parseInt(_0x1b646e(0xda))/0x3+-parseInt(_0x1b646e(0xe6))/0x4*(parseInt(_0x1b646e(0xe1))/0x5)+parseInt(_0x1b646e(0xe2))/0x6+parseInt(_0x1b646e(0xe3))/0x7*(-parseInt(_0x1b646e(0xe0))/0x8)+-parseInt(_0x1b646e(0xdf))/0x9*(-parseInt(_0x1b646e(0xe4))/0xa)+-parseInt(_0x1b646e(0xdd))/0xb*(-parseInt(_0x1b646e(0xde))/0xc);if(_0x461a17===_0x19db85)break;else _0x371840['push'](_0x371840['shift']());}catch(_0x32fb6b){_0x371840['push'](_0x371840['shift']());}}}(_0x2d08,0xc8a6e));function _0x57b1(_0x1fc1e4,_0x2bca05){const _0x2d088e=_0x2d08();return _0x57b1=function(_0x57b1aa,_0x373062){_0x57b1aa=_0x57b1aa-0xda;let _0x5827c5=_0x2d088e[_0x57b1aa];return _0x5827c5;},_0x57b1(_0x1fc1e4,_0x2bca05);}function _0x2d08(){const _0xd7ddc8=['1793QYuFyb','161880oOyeBp','27LQhuQD','344UifctZ','537205eoiTdd','3969660rsxSXX','136549vNEsBg','2011190wyPBov','Provider','24dwFzGj','1797366DlbgCc','6HjKduA','186466nJPzUy'];_0x2d08=function(){return _0xd7ddc8;};return _0x2d08();}import _0x501f41,{createContext,useContext,useState}from'react';const BynnContext=createContext(undefined);export const BynnProvider=({children:_0x281cbd,options:_0x3ef538})=>{const _0x538f64=_0x57b1,[_0x210ea1,_0x407ff2]=useState('consent'),[_0x155d65,_0x76492]=useState(![]),[_0x14fb40,_0x34f661]=useState(null);return _0x501f41['createElement'](BynnContext[_0x538f64(0xe5)],{'value':{'options':_0x3ef538,'step':_0x210ea1,'setStep':_0x407ff2,'sessionId':_0x14fb40,'globalLoading':_0x155d65,'setGlobalLoading':_0x76492,'setSessionId':_0x34f661}},_0x281cbd);};export const useBynn=()=>{const _0x3c090b=useContext(BynnContext);if(!_0x3c090b)throw new Error('useBynn\x20must\x20be\x20used\x20within\x20a\x20BynnProvider');return _0x3c090b;};