{"id":22895930,"url":"https://github.com/codewithreelofficial/react-native-flags-kit","last_synced_at":"2025-05-07T20:26:44.186Z","repository":{"id":41781904,"uuid":"154073760","full_name":"codewithreelofficial/react-native-flags-kit","owner":"codewithreelofficial","description":"React Native Flags Kit - React Native Flag component with all the flags in the world.","archived":false,"fork":false,"pushed_at":"2024-05-08T13:26:37.000Z","size":3094,"stargazers_count":8,"open_issues_count":19,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-03T23:04:49.635Z","etag":null,"topics":["android","flag","flags","flags-kit","ios","mobile","react","react-component","react-components","react-flags","react-native","react-native-component"],"latest_commit_sha":null,"homepage":"","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/codewithreelofficial.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-22T01:57:27.000Z","updated_at":"2024-10-15T20:45:24.000Z","dependencies_parsed_at":"2024-11-03T21:06:39.925Z","dependency_job_id":"2a56c413-610c-438d-807e-b8b6495ae851","html_url":"https://github.com/codewithreelofficial/react-native-flags-kit","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"9e0aaa374d74bb215e387c0c4258011465b6f5d2"},"previous_names":["codewithreelofficial/react-native-flags-kit","themodernjavascript/react-native-flags-kit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-flags-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-flags-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-flags-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-flags-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithreelofficial","download_url":"https://codeload.github.com/codewithreelofficial/react-native-flags-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229629256,"owners_count":18101263,"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":["android","flag","flags","flags-kit","ios","mobile","react","react-component","react-components","react-flags","react-native","react-native-component"],"created_at":"2024-12-13T23:32:51.485Z","updated_at":"2024-12-13T23:32:52.027Z","avatar_url":"https://github.com/codewithreelofficial.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-flags-kit\n\nReact Native Flags Kit - React Native Flag component with all the flags in the world. [![version](https://img.shields.io/npm/v/react-native-flags-kit.svg?style=flat-square)](https://www.npmjs.com/package/react-native-flags-kit) [![downloads](https://img.shields.io/npm/dm/react-native-flags-kit.svg?style=flat-square)](https://www.npmjs.com/package/react-native-flags-kit) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](http://opensource.org/licenses/MIT).\n\n![react-native-custom-keyboard-kit](./react-native-flags-kit.png)\n\n## Installation\n\n`$ npm install react-native-flags-kit --save`\n\n## Usage\n\n```javascript\nimport Flag from 'react-native-flags-kit';\n\n\u003cFlag\n  code=\"DE\"\n  size={32}\n/\u003e\n```\n\n## Full usage code\n\n```javascript\nimport React, {Component} from 'react';\nimport {\n  Platform,\n  StyleSheet,\n  View,\n} from 'react-native';\n\nimport Flag from 'react-native-flags-kit';\n\ntype Props = {};\nexport default class App extends Component\u003cProps\u003e {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cFlag\n          code=\"US\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"JP\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"CN\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"RU\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"KH\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"VN\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"SG\"\n          size={64}\n        /\u003e\n        \u003cFlag\n          code=\"MY\"\n          size={64}\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n    fontSize: 30,\n  },\n});\n```\n\nYou can find the source code [here](./examples/FlagsKitBasic).\n\n## Props\n\n| Props | Type | Default | Description |\n|:----------|:----------|:----------|:----------|\n| code | string | | [The ISO code of a flag](https://www.translatorscafe.com/cafe/ISO-3166-Country-Codes.htm), for example \"KH\", \"US\" or \"GB\". |\n| type | string (flat or shiny) | shiny | Display the flags shiny or flat. |\n| size | number (16, 24, 32, 48 or 64) | 64 | The size of a flag in points (Note: Setting a size of any other values will cause and error). |\n| style (optional) |  |  | Allows additional styles to be passed through. |\n\n## Wrap Up\n\nIf you think any of the `react-native-flags-kit` can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.\n\n## Contribution\n\nWe'd love to have your helping hand on contributions to `react-native-flags-kit` by forking and sending a pull request!\n\nYour contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)\n\nHow to contribute:\n\n- Open pull request with improvements\n- Discuss ideas in issues\n- Spread the word\n- Reach out with any feedback\n\n## License\n\nThe MIT License [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithreelofficial%2Freact-native-flags-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithreelofficial%2Freact-native-flags-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithreelofficial%2Freact-native-flags-kit/lists"}