{"id":19972378,"url":"https://github.com/zaprogrammer/react-native-template-typescript-tdd","last_synced_at":"2026-04-10T06:55:00.230Z","repository":{"id":57170295,"uuid":"273292401","full_name":"zaprogrammer/react-native-template-typescript-tdd","owner":"zaprogrammer","description":"A react native template, with support for TDD and typescript out of the box.","archived":false,"fork":false,"pushed_at":"2020-08-13T17:36:34.000Z","size":390,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T00:44:21.584Z","etag":null,"topics":["android","ios","npm","npm-package","react-native","tdd","typescript"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaprogrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-18T16:50:14.000Z","updated_at":"2022-06-28T03:30:43.000Z","dependencies_parsed_at":"2022-08-27T12:01:52.176Z","dependency_job_id":null,"html_url":"https://github.com/zaprogrammer/react-native-template-typescript-tdd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zaprogrammer/react-native-template-typescript-tdd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaprogrammer%2Freact-native-template-typescript-tdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaprogrammer%2Freact-native-template-typescript-tdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaprogrammer%2Freact-native-template-typescript-tdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaprogrammer%2Freact-native-template-typescript-tdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaprogrammer","download_url":"https://codeload.github.com/zaprogrammer/react-native-template-typescript-tdd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaprogrammer%2Freact-native-template-typescript-tdd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837583,"owners_count":24654391,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","ios","npm","npm-package","react-native","tdd","typescript"],"created_at":"2024-11-13T03:07:51.307Z","updated_at":"2025-12-30T21:45:08.396Z","avatar_url":"https://github.com/zaprogrammer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native typescript TDD template\nThis template is a react-native boilerplate project template to start with for new projects.\n\n## Changelog:\nv1.0.107:\n* Fix project.pbxproj file\n\nv1.0.106:\n* Upgrade to react native v0.63.2\n\n## Features\n\n*  [✅]  **Typescript ready:** This template based on the typescript template [here](https://github.com/react-native-community/react-native-template-typescript)\n\n*  [✅]  **React Navigation ready:** Includes [react navigation](https://reactnavigation.org/) with basic working functionality out-of-the-box to work with.\n\n*  [✅]  **TDD ready:** Includes setup for [Jest](https://jestjs.io/), [Enzyme](https://enzymejs.github.io/enzyme/), [Detox](https://github.com/wix/Detox) for component and e2e testing.\n\n*  [✅]  **Lint ready:** ESlint.\n\n\n## Installation\nIn the desired folder where you want to create the project, open command line and type:\n\n\n\u003e`npx react-native init {PROJECT_NAME} --template react-native-template-typescript-tdd`\n\nor if you want to install it from Github directly, type:\n\n\u003e`react-native init {PROJECT_NAME} --template https://github.com/zaprogrammer/react-native-template-typescript-tdd.git`\n\n\n## How to use\nThis template uses functional components and [React Hooks](https://reactjs.org/docs/hooks-intro.html), but feel free to use class components, or use your preferred state-management library.\n\n\n### Structure\nThe template structure is as follows:\n\n\n#### src\n\nThe `src` folder is where all our development files/folders reside.\n\n-  **App.tsx** \nApp entry point and starting screen, where your App function is defined.\n\n-  **Navigation.tsx**\nContains basic navigation stack for main -\u003e details screens.\n\n-  **screens**\nFolder to contains app screens (pages). I structured it to contain each screen in its separate folder, like **main, detail** folders where the screen.tsx and screenStyle.ts files exist.\n\n-  **model**\nContains data objects so to map data retrieved from server or DB to those objects.\n\n-  **services**\nContains API or server calling related classes, and includes an API.ts file as an abstract class to retrieve data from server.\n\n-  **helper**\nOther helper classes or functions like abstract DB layer.\n\n-  **commons**\nTo contain any shared components or app generic functionality like app common styles.\n\n#### TDD\n\nThere are very good tutorials ([here](https://learntdd.in/react-native/)) covering how to use TDD with react-native so you can apply on this template.\n\n\nOfficial documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaprogrammer%2Freact-native-template-typescript-tdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaprogrammer%2Freact-native-template-typescript-tdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaprogrammer%2Freact-native-template-typescript-tdd/lists"}