{"id":19220079,"url":"https://github.com/nativescript-community/capacitor-plugins","last_synced_at":"2025-10-18T12:42:28.934Z","repository":{"id":53754100,"uuid":"340226081","full_name":"nativescript-community/capacitor-plugins","owner":"nativescript-community","description":"Community plugin for `NativeScript for Capacitor`","archived":false,"fork":false,"pushed_at":"2021-03-16T02:36:14.000Z","size":1239,"stargazers_count":22,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-20T21:36:04.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nativescript-community.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":"2021-02-19T01:33:06.000Z","updated_at":"2025-03-11T08:30:01.000Z","dependencies_parsed_at":"2022-09-15T12:40:47.241Z","dependency_job_id":null,"html_url":"https://github.com/nativescript-community/capacitor-plugins","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-community%2Fcapacitor-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-community%2Fcapacitor-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-community%2Fcapacitor-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-community%2Fcapacitor-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nativescript-community","download_url":"https://codeload.github.com/nativescript-community/capacitor-plugins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253851070,"owners_count":21973674,"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":[],"created_at":"2024-11-09T14:33:54.558Z","updated_at":"2025-10-18T12:42:23.888Z","avatar_url":"https://github.com/nativescript-community.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/%40nativescript-community%2Fcapacitor-plugins.svg)](https://badge.fury.io/js/%40nativescript-community%2Fcapacitor-plugins)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n# @nativescript-community/capacitor-plugins\n\n__✅ This repository is test repository, and not release @nativescript-community/capacitor-plugins now.__\n\n## 👊 Try this project\n\nPlease clone, and npm link in your local.\n\n```bash\n% git clone git@github.com:nativescript-community/capacitor-plugins.git\n% cd capacitor-plugins \u0026\u0026 npm install\n% npm link\n```\n\n## 📱 Install in your Capacitor Project\n\n### PreInstall in your project\n```\n% npm install @capacitor/cli@next --save-dev\n% npm install @capacitor/core@next --save\n% npm install @nativescript/capacitor\n```\n\n### Install\n\n```bash\n% npm install --save @nativescript-community/capacitor-plugins\n```\n\n### Change your project\n\n#### 1. Add `src/nativescript/index.ts`\n\nAdd the following code:\n\n```diff\n  import '@nativescript/capacitor/bridge';\n+ import * as Plugins from '@nativescript-community/capacitor-plugins';\n\n+ native = Object.assign(native, Plugins);\n...\n```\n\n[Example demo is here.](https://github.com/nativescript-community/capacitor-plugins/blob/main/demo/angular/src/nativescript/index.ts)\n\n### 2. Change `src/native-custom.d.ts`\n\nReplace the following code:\n\n```diff\n+ import type { pluginsGlobal } from '@nativescript-community/capacitor-plugins/src/interfaces';\n\n  declare module '@nativescript/capacitor' {\n    export interface customNativeAPI extends nativeCustom {}\n  }\n\n  /**\n   * Define your own custom strongly typed native helpers here.\n   */\n- export interface nativeCustom {\n+ export interface nativeCustom extends pluginsGlobal {\n```\n\n[Example demo is here.](https://github.com/nativescript-community/capacitor-plugins/blob/main/demo/angular/src/native-custom.d.ts)\n\n## Usage\n[Usage Example demo is here.](https://github.com/nativescript-community/capacitor-plugins/blob/main/demo/angular/src/app/tab1/tab1.page.ts).\n\n\n### 1. brightness(value: number)\nYou can change device brightness (1〜10). This is official example code.\n\n```ts\nimport { native } from '@nativescript/capacitor';\n\nnative.brightness(1);\n```\n### 2. rateMyApp()\nYou can allow users to rate the app from inside the application.\n\n#### iOS\nNo additional configurations are required for iOS. \nHowever, for now it supports iOS version 10.3 and later.  \n\n#### Android\nBefore start using this function add next lines to the dependencies \nsection of your `android/app/build.gradle`\n\n```gradle\nimplementation \"androidx.appcompat:appcompat:1.2.0\"\nimplementation 'com.google.android.play:core:1.10.0'\n```\nYou can read more about how to import Google Play Core Library \ninto your project [here](https://developer.android.com/guide/playcore?authuser=1#java-kotlin)\n\nIn-app reviews only work on Android devices (phones and tablets) running Android 5.0 (API level 21) \nor higher that have the Google Play Store installed and on Chrome OS devices that have the Google Play Store installed.\n\nImportant: your app should be published for at least internal testing. \nRead more about it in [this SO answer](https://stackoverflow.com/questions/63286540/play-core-in-app-review-api-not-showing-the-review-activity)\n\n#### Usage\n```ts\nimport { native } from '@nativescript/capacitor';\nnative.rateMyApp();\n```\n\n### Demo Code\nYou can check Native Console Log. This is official example code.\n```ts\nimport { native } from '@nativescript/capacitor';\n\nnative.dreamBig();\n```\n\nAnd Launch Native Modal View. This is official example code.\n\n```ts\nimport { native } from '@nativescript/capacitor';\n\nnative.openNativeModalView();\n```\n\n## Option\n\n### If you want use some plugin only:\nYou should select plugin and import.\n\n`src/nativescript/index.ts`:\n\n```ts\nimport { brightness } from '@nativescript-community/capacitor-plugins';\nnative = Object.assign(native, {\n  brightness,\n});\n```\n\n`src/native-custom.d.ts`:\n\n```ts\nimport type { IBrightness } from '@nativescript-community/capacitor-plugins/src/interfaces';\nexport interface nativeCustom extends IBrightness {\n  dreamBig: () =\u003e NativeProperty\u003cstring\u003e;\n  openNativeModalView: () =\u003e void;\n}\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://agilie.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/12133261?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSergey Mell\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/nativescript-community/capacitor-plugins/commits?author=SergeyMell\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript-community%2Fcapacitor-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnativescript-community%2Fcapacitor-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript-community%2Fcapacitor-plugins/lists"}