{"id":26484339,"url":"https://github.com/georgehop/react-native-tm","last_synced_at":"2026-03-15T16:58:33.826Z","repository":{"id":45539390,"uuid":"371829237","full_name":"GeorgeHop/react-native-tm","owner":"GeorgeHop","description":":triangular_flag_on_post: Fully customizable toast component for your react-native applications supported on IOS and Android. Also you can use it with expo or pure react-native. :triangular_flag_on_post:","archived":false,"fork":false,"pushed_at":"2022-03-01T16:00:49.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T04:17:20.730Z","etag":null,"topics":["android","animated","customizable","expo","ios","react","react-native","toast","toast-notifications"],"latest_commit_sha":null,"homepage":"https://github.com/GeorgeHop/react-native-tm","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/GeorgeHop.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}},"created_at":"2021-05-28T22:13:00.000Z","updated_at":"2022-02-01T21:02:40.000Z","dependencies_parsed_at":"2022-08-27T22:02:08.821Z","dependency_job_id":null,"html_url":"https://github.com/GeorgeHop/react-native-tm","commit_stats":null,"previous_names":["georgehop/react-native-toast"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/GeorgeHop/react-native-tm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeHop%2Freact-native-tm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeHop%2Freact-native-tm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeHop%2Freact-native-tm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeHop%2Freact-native-tm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeorgeHop","download_url":"https://codeload.github.com/GeorgeHop/react-native-tm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeHop%2Freact-native-tm/sbom","scorecard":{"id":55793,"data":{"date":"2025-08-11","repo":{"name":"github.com/GeorgeHop/react-native-tm","commit":"b39b7d96649cd866ab381b5c6f108c132d78f935"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T00:42:46.448Z","repository_id":45539390,"created_at":"2025-08-15T00:42:46.449Z","updated_at":"2025-08-15T00:42:46.449Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30547522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","animated","customizable","expo","ios","react","react-native","toast","toast-notifications"],"created_at":"2025-03-20T05:28:07.308Z","updated_at":"2026-03-15T16:58:33.778Z","avatar_url":"https://github.com/GeorgeHop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-tm\nFully customizable toast component for your react-native applications supported on IOS and Android. Also you can use it with expo or pure react-native. \n\n![ezgif com-gif-maker (8)](https://user-images.githubusercontent.com/47904385/120900240-1225d380-c634-11eb-9842-3aadf5902967.gif)\n\n# Installation\nexpo: `expo install react-native-tm`  \nnpm: `npm i react-native-tm`  \nyarn: `yarn add react-native-tm`\n\n## Basic usage\n```JS\nimport Toast from \"react-native-tm\";\n\nexport default function YourComponent() {\n   return(\n      \u003cYourComponentsHere\u003e\u003c/YourComponentsHere\u003e\n      \u003cToast\n        show={true}\n        withClose={true}\n        style={{\n          toast: {\n            width: '100%',\n            height: 50,\n            backgroundColor: 'red'\n          }\n        }}\n      /\u003e\n   )\n}\n\n// more about customizing below\n```\n\n## How customize your toast ? \n```JS\nimport Toast from \"react-native-tm\";\n\nexport default function YourComponent() {\n   \n   return(\n      \u003cYourComponentsHere\u003e\u003c/YourComponentsHere\u003e\n      \u003cToast\n        show={true}\n        // set the animation type of toast choose the best for you in props\n        animationType={'bounce'}\n        // add the closing toast function on press\n        withClose={true}\n        // pass toast styles object to style\n        style={{\n          toast: {\n            width: '100%',\n            height: 50,\n            backgroundColor: 'red'\n          }\n        }}\n      \u003e\n        // and for sure you can add childrens here\n        // to customize your toast \n        \u003cView style={{height: 50, width: 50, backgroundColor: 'black', borderRadius: 30}}/\u003e\n        \u003cView\n          style={{\n              marginLeft: 10\n          }}\n        \u003e\n            \u003cText\u003e\n                  Title top\n            \u003c/Text\u003e\n            \u003cText\u003e\n                  Description on the bottom\n            \u003c/Text\u003e\n        \u003c/View\u003e\n      \u003c/Toast\u003e\n   )\n}\n\n```\n\n## How customize your animation ? \n\nBy default toast use the linear animation, just show and hide nothing special. But if you want to change the animation type use description below.\n\n#### For bounce animation.\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```JS\n     \u003cToast\n        ...\n         // Add the animation type bounce\n        animationType={'bounce'}\n       ...\n      /\u003e\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/47904385/120920413-edc30900-c6be-11eb-82bf-9aa5b31dd1c8.gif\" alt=\"drawing\" width=\"600\" height=\"300\"/\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n#### For elastic animation.\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```JS\n     \u003cToast\n        ...\n         // Add the animation type elastic\n        animationType={'elastic'}\n       ...\n      /\u003e\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/47904385/120920546-9f623a00-c6bf-11eb-852e-867d40f3b65f.gif\" alt=\"drawing\" width=\"600\" height=\"300\"/\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Props\nBelow are the props you can pass to the React Component.\n\n| Prop  | Type | Default | Example | Description |\n| ------------- | ------------- | ------------- | ------------- | ------------- |\n| show  | boolean | | show={true} | Put the toast state |\n| animationType | string | | animationType={'bounce'} | If you what different animations on your toast |\n| toastOnPress | function | | toastOnPress={() =\u003e console.log('check')} | You can add many other functions here or just navigate to other screen |\n| withClose | boolean | false | withClose={true} | Added posibility to close toast on press. You can use it with toastOnPress at one time. |\n| children | component | | ``` \u003cToast\u003e\u003cYourComponent/\u003e\u003c/Toast\u003e ``` | You can add yout own component for example messages from users in your app or internet connection notifications. |\n| style | object | | {toast: {backgroundColor: 'black', height: 50}} | The styles object for styling the toast details. More about styling in Custom styling step.|\n| showingDuration | int | 8000 | showingDuration={3000} | How much time toast will show on the screen |\n| statusBarHeight | int | 180 | statusBarHeight={150} | If you have a specific status bar on your device you may want to pass this props to aware some UI bugs on the device |\n| onHide  | function | | onHide={() =\u003e yourFunctionToDoSomething()} | Function which call when toast hiding. |\n\n## ToDos\n\n1. TypeScript support.\n2. More animation for customizing.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgehop%2Freact-native-tm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgehop%2Freact-native-tm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgehop%2Freact-native-tm/lists"}