Skip to content

typescript-fetch client isomorphic dependency does not work on React Native #6738

@jeff-99

Description

@jeff-99
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions