{"id":18605664,"url":"https://github.com/indec-it/react-native-spatialite","last_synced_at":"2025-04-10T20:31:05.530Z","repository":{"id":57340352,"uuid":"83072227","full_name":"indec-it/react-native-spatialite","owner":"indec-it","description":"React Native Spatialite Plugin for Android","archived":false,"fork":false,"pushed_at":"2019-03-31T01:31:17.000Z","size":120,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T04:03:45.298Z","etag":null,"topics":["android","react-native","spatialite","sqlite"],"latest_commit_sha":null,"homepage":null,"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/indec-it.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":"2017-02-24T18:45:24.000Z","updated_at":"2023-11-30T01:31:01.000Z","dependencies_parsed_at":"2022-08-29T16:21:22.365Z","dependency_job_id":null,"html_url":"https://github.com/indec-it/react-native-spatialite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indec-it%2Freact-native-spatialite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indec-it%2Freact-native-spatialite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indec-it%2Freact-native-spatialite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indec-it%2Freact-native-spatialite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indec-it","download_url":"https://codeload.github.com/indec-it/react-native-spatialite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290021,"owners_count":21078923,"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","react-native","spatialite","sqlite"],"created_at":"2024-11-07T02:22:29.701Z","updated_at":"2025-04-10T20:31:05.185Z","avatar_url":"https://github.com/indec-it.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-spatialite\n\nReact Native Spatialite Plugin for Android\n\n## Getting started\n\n`$ npm install react-native-spatialite --save`\n\n### Manual installation\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import ar.gov.indec.react.spatialite.SpatialiteReactPackage;` to the imports at the top of the file\n  - Add `new SpatialiteReactPackage()` to the list returned by the `getPackages()` method\n\n2. Append the following lines to `android/settings.gradle`:\n\n  \t```\n  \tinclude ':react-native-spatialite'\n\n  \tproject(':react-native-spatialite').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spatialite/android')\n  \t```\n\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n\n  \t```\n    compile project(':react-native-spatialite')\n  \t```\n\n4. Add JitPack in `android/build.gradle` as repository\n    ```\n    allprojects {\n        repositories {\n            ...\n            maven { url 'https://jitpack.io' }\n            ...\n        }\n    }\n    ```\n\n## Usage\n```javascript\nimport db from 'react-native-spatialite';\n\ndb.createConnection('test.db').then(connected =\u003e {\n    console.log('Database is connected', connected);\n    return db.getVersion();\n}).then(\n    array =\u003e {\n        console.log({array});\n        return db.executeQuery('SELECT * FROM MyTable');\n    }\n).then(\n    rows =\u003e {\n        console.log({rows});\n    }\n).catch(\n    err =\u003e {\n        throw err;\n    }\n);\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findec-it%2Freact-native-spatialite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findec-it%2Freact-native-spatialite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findec-it%2Freact-native-spatialite/lists"}