{"id":15827484,"url":"https://github.com/bayazetyan/react-native-generator","last_synced_at":"2025-07-01T01:36:28.371Z","repository":{"id":68163193,"uuid":"112070690","full_name":"bayazetyan/react-native-generator","owner":"bayazetyan","description":"This is the file generator for react-native ( Redux ) application","archived":false,"fork":false,"pushed_at":"2017-12-17T08:26:10.000Z","size":132,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-20T07:18:55.397Z","etag":null,"topics":["development","fast","generator","react","react-native","redux"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bayazetyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-26T09:31:48.000Z","updated_at":"2024-08-23T06:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4bac759-d6b7-4b45-b3fd-6a763ac80a2f","html_url":"https://github.com/bayazetyan/react-native-generator","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"16a065cfafe6117f91698bda2eb59fad643d4d7b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bayazetyan/react-native-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayazetyan%2Freact-native-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayazetyan%2Freact-native-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayazetyan%2Freact-native-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayazetyan%2Freact-native-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bayazetyan","download_url":"https://codeload.github.com/bayazetyan/react-native-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayazetyan%2Freact-native-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260967254,"owners_count":23090095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","fast","generator","react","react-native","redux"],"created_at":"2024-10-05T10:06:05.933Z","updated_at":"2025-07-01T01:36:28.318Z","avatar_url":"https://github.com/bayazetyan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-generator\n\nWhy use this when there are other generators?\n\nThere are different type of generator to help create react and redux based application. They are doing great job with action, enums and reducers generation, but based on exist experience we believe that module based structuring is more reliable way to go. This generator created in mind to provide efficient way for  component, container, screens, actions, generator. You can create a  project (React Native) structure fro 20 minutes, **save your time** :) . It's very simple and convenient for using.\n\n----------\n\n# Install\n\n    yarn  add -D rn-generator\n\n**or**\n\n    npm install -D rn-generator\n\n\nOpen package json and add generate command within the scripts option\n\n    \"scripts\": {\n\t    \"generator\": \"generate\"\n\t}\n\n# Generators\n\nThe generator help to generate following components.\n\n- Component generator\n\t- Name: The  name of the component. i.e `(Button, LoginForm etc.)`\n\t- Flow: The static type\n\t- Use PureComponent / Component\n\t- Component properties: choose the component properties i.e `( constructor, propTypes, default props ) or life cycles ` \n\t- ![life cycles](./resources/lifeCycles.png)\n\t- Tests\n- Container generator\n\t- Name: the name of the container, i.e. Awesome, which converts to: AwesomeContainer.\n\t- Component: you must select the component in list, that connects this container.\n\t- Module\n\t- Actions: set the action names\n- Redux store configuration generator\n\t- Create store config file \t \n\nTo run the generators with a list of options, run\n\n    yarn run generator\n\n**or**\n\n    npm run generator\n\n\n\u003e **Note:**\n\u003e\n\u003e  When you use the generator you need to use  \"redux-action\", for actions and reducers. You can see it [there](https://www.npmjs.com/package/redux-action)\n\n# Configs\n\nThe generators output paths can be configured in two ways.\n\n **1. package.json**\n\nYou just need create rnGenerator properties in package.json file and give relative paths\n\n\t\"rnGenerator\": {\n\t   \"paths\": {\n\t     \"componentsDir\": \"src/components/\"\n\t    }\n\t}\n \n \n **2. .rnGenerator**\n\nCreate \".rnGenerator\" file in the root directory (where package.json is)\n\nSet your custom configs there as json data\n\n\t{\n\t\t\"paths\": {\n\t\t\t\"rootReducerPath\": \"src/reducers/index.js\",\n\t\t    \"componentsDir\": \"src/components\",\n\t\t    \"containersDir\": \"src/containers\",\n\t\t    \"modulesDir\": \"src/modules\",\n\t\t    \"testRootDir\": \"./__test__\",\n\t\t    \"rootFile\": \"src/index.js\",\n\t\t    \"storePath\": \"src/store\",\n\t\t    \"appFile\": \"src/app.js,\n\t\t    \"templatePath\": \"\",\n\t\t}\n\t}\n\n\n# Roadmap\n\n- [ ]  Add custom generators\n \n\n# Licence\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayazetyan%2Freact-native-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbayazetyan%2Freact-native-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayazetyan%2Freact-native-generator/lists"}