Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to add aws-Amplify authentication to react-native typescript project template

$
0
0

I'm trying to add Amplify Authentication in my react native project that uses Typescript template . There is a package given in amplify documentation 'aws-amplify-react-native' which is used as a middleware to authenticate our application. But this package is only supported in projects which are based on javascript not Typescript. For Typescript it shows an error like

Could not find a declaration file for module 'aws-amplify-react-native'. '/home/george/ELab/node_modules/aws-amplify-react-native/dist/index.js' implicitly has an 'any' type.Try npm i --save-dev @types/aws-amplify-react-native if it exists or add a new declaration (.d.ts) file containing `declare module 'aws-amplify-react-native'

There is no package available like '@types/aws-amplify-react-native'

and I have read through the post of other developer who are facing similar problem like this but the was no answer provide can some one please , I beg you help me out here this problem I been trying to fix it for two weeks now


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>