{"id":4809,"url":"https://github.com/fasky-software/react-native-widgetkit","last_synced_at":"2025-04-07T18:15:21.467Z","repository":{"id":49185330,"uuid":"306468411","full_name":"fasky-software/react-native-widgetkit","owner":"fasky-software","description":"React-Native library for the WidgetKit framework. Integrate a Widget into your App 🍏📱","archived":false,"fork":false,"pushed_at":"2021-06-24T14:21:21.000Z","size":846,"stargazers_count":155,"open_issues_count":3,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-30T01:21:28.921Z","etag":null,"topics":["ios14","react-native","widgetkit"],"latest_commit_sha":null,"homepage":"","language":"Java","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/fasky-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-22T22:02:20.000Z","updated_at":"2024-03-17T10:59:02.000Z","dependencies_parsed_at":"2022-08-24T18:41:50.007Z","dependency_job_id":null,"html_url":"https://github.com/fasky-software/react-native-widgetkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Freact-native-widgetkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Freact-native-widgetkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Freact-native-widgetkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasky-software%2Freact-native-widgetkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasky-software","download_url":"https://codeload.github.com/fasky-software/react-native-widgetkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"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":["ios14","react-native","widgetkit"],"created_at":"2024-01-05T20:17:24.860Z","updated_at":"2025-04-07T18:15:21.442Z","avatar_url":"https://github.com/fasky-software.png","language":"Java","readme":"\u003ch1 align=\"center\"\u003e react-native-widgetkit \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"widgetkit\" src=\"./git_assets/widgetkit.png\" width=\"96\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eReact-Native Library for the iOS 🍏 \u003ca href=\"https://developer.apple.com/documentation/widgetkit/\"\u003eWidgetKit framework\u003ca\u003e\u003c/strong\u003e \n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"widget_small\"  src=\"./git_assets/focused_small.png\" width=\"96\"\u003e\n\u003cimg alt=\"widget_medium\"  src=\"./git_assets/weather_medium.png\" width=\"200\"\u003e\n\u003cimg alt=\"widget_small\"  src=\"./git_assets/notes_small.png\" width=\"96\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n## Table of Contents 📚\n\n- [Introduction 👨‍🏫](#introduction-)\n- [Installation 🖇‍](#installation-)\n- [Usage 👨🏻‍💻](#usage-)\n- [Methods 📖](#methods-)\n- [Contributors 🤓](#contributors-)\n- [License 🔖](#license-)\n\n## Introduction 👨‍🏫\n\nThis library allows you to call essential methods from the iOS \"WidgetKit Framework\", which are needed when developing a widget. For example updating the widget timelines\n\n🚨 To be on the safe side: This library exposes API functionality of \u003ca href=\"https://developer.apple.com/documentation/widgetkit/\"\u003eWidgetKit\u003c/a\u003e. The widgets themselves must be developed natively in SwiftUI.\n\n## Installation 🖇‍\n\n```sh\nnpm install react-native-widgetkit\n```\n\n## Usage 👨🏻‍💻\n\n```js\nimport { reloadAllTimelines } from 'react-native-widgetkit';\n\n// ...\n\nreloadAllTimelines();\n```\n\n## Methods 📖‍\n\n#### `reloadAllTimelines()`\n\nReloads the timelines for all configured widgets belonging to the containing app.\n\n---\n\n#### `reloadTimelines(ofKind: String)`\n\nReloads the timelines for all widgets of a particular kind.\n\n---\n\n#### `WidgetKit.setItem(String key, String value, String appGroup)`\n\nWrites Key-Value to \u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e database.\n\n---\n\n#### `WidgetKit.getItem(String key, String appGroup)`\n\nReads Value from \u003ca href=\"https://developer.apple.com/documentation/foundation/userdefaults\"\u003eUserDefaults\u003c/a\u003e database.\n\n---\n\n## [Contributors 🤓](#Contributors)\n\n| [\u003cimg alt=\"Thomas Leiter\" src=\"https://avatars3.githubusercontent.com/u/20393156?s=400\u0026u=ae0a43de5d81d58a698abffe4e2ede024f2b6700\u0026v=4\" width=\"117\"\u003e](https://github.com/tomLadder) |     |\n| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- |\n| \u003cp align=\"center\"\u003e[Thomas Leiter](https://github.com/tomLadder) \u003c/p\u003e                                                                                                               |\n\n## License 🔖\n\nMIT License\n\nCopyright (c) 2020 Thomas Leiter, Fasky OG\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["Components"],"sub_categories":["Extension"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasky-software%2Freact-native-widgetkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasky-software%2Freact-native-widgetkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasky-software%2Freact-native-widgetkit/lists"}