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

Include a JS file in a React-Native Typescript project

$
0
0

Basically I am trying to customize a library file written in plain javascript and put it as a local file in a React-Native typescript project, the moment I try to convert the .js file to .ts/.tsx file, it throws a lots of linting issues, so fixing it is bit chaotic so I thought of keeping it as .js file only but I don't want to make any changes in the tsconfig file(i.e., adding jsallow = true), I know their is a way of adding some .d.ts file but not sure will it work or not and if it is, then what would be the syntax.


Viewing all articles
Browse latest Browse all 6213

Trending Articles



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