Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erorr unexpected token #16

Open
imamnghr opened this issue Feb 16, 2024 · 0 comments
Open

erorr unexpected token #16

imamnghr opened this issue Feb 16, 2024 · 0 comments

Comments

@imamnghr
Copy link

Error: Unexpected error
at Object.promiseMethodWrapper [as encrypt] (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:105:51)
at handleNext (C:\Users\LENOVO\Documents\edc-neropay\src\screens\listToken\ListToken.js:53:18)
at Pressability._performTransitionSideEffects (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Pressability\Pressability.js:756:11)
at Pressability._receiveSignal (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Pressability\Pressability.js:693:12)
at onResponderRelease (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Pressability\Pressability.js:524:14)
at Object.invokeGuardedCallbackProd (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:107:10)
at invokeGuardedCallback (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:340:31)
at invokeGuardedCallbackAndCatchFirstError (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:364:25)
at executeDispatch (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:466:3)
at executeDispatchesInOrder (C:\Users\LENOVO\Documents\edc-neropay\node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:490:5)

with my code 

    const data = {
 
  transactionId,
  text: 'mumbai',
  dynamic: true,
};
const secretKey = Api.SECRET_KEY;
const stringEncrypt = JSON.stringify(data)


AesGcmCrypto.encrypt(stringEncrypt, true, secretKey).then((result) => {
  console.log(result);
}).catch((error) => {
  console.error("Kesalahan Enkripsi:", error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant