Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native Flow types generation #199

Open
sytolk opened this issue Oct 31, 2017 · 0 comments
Open

React Native Flow types generation #199

sytolk opened this issue Oct 31, 2017 · 0 comments

Comments

@sytolk
Copy link

sytolk commented Oct 31, 2017

I'm using swagger-js-codegen script in React Native project to generate React Rest Client from swagger-2.0.json with definitions (mapping model). React native using Flow for JS types. Using getReactCode we don't have swagger definitions generated into Flow types now

const reactjsSourceCode = CodeGen.getReactCode({ // .getTypescriptCode({
    className,
    swagger,
    isES6: true
});

I'm using getTypescriptCode to convert TypeScript (extracted models only) into Flow types with https://github.com/joarwilk/flowgen but it can't be automated and it's better swagger-js-codegen project to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant