I have a problem integrating library "amazon-cognito-identity-js" into react native. The authenticateUser function is too slow depending on the device:
Iphone XS: 40 seconds
Samsung galaxy A11: 70 seconds
The problem is probably in the post-processing in the library because the image below shows the api response time is only about 200 milliseconds.
I've been searching for a solution for weeks, please can anyone come across this situation and can post solution.
"react-native": "0.66.3",
"@react-native-async-storage/async-storage": "^1.17.10",
"aws-amplify": "^4.3.34",
"aws-amplify-react-native": "^6.0.5",
"amazon-cognito-identity-js": "^5.2.10",