Description
The generated code from the typescript fetch client generator cannot be used in React Native. There are multiple open issues related to this:
Swagger-codegen version
2.3.0
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Use any swagger file to generate client and use it in a React Native project. It will give the following error: fetch is not a function
Related issues/PRs
Suggest a fix/enhancement
replace the dependency from isomorphic-fetch to portable-fetch
Description
The generated code from the typescript fetch client generator cannot be used in React Native. There are multiple open issues related to this:
The maintainer does not comment on these issues, nor does he respond to the posted pull requests to add react native support. So I would love to see the dependency to isomorphic-fetch will be replaced by portable-fetch (fork with react native support)
Swagger-codegen version
2.3.0
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Use any swagger file to generate client and use it in a React Native project. It will give the following error: fetch is not a function
Related issues/PRs
Suggest a fix/enhancement
replace the dependency from isomorphic-fetch to portable-fetch