{"id":43687802,"url":"https://github.com/BradMartin/nativescript-facebookrebound","last_synced_at":"2026-02-16T13:01:54.934Z","repository":{"id":57308513,"uuid":"51549899","full_name":"bradmartin/nativescript-facebookrebound","owner":"bradmartin","description":":basketball: NativeScript plugin to use Facebook's Spring Animations for Android :basketball:","archived":false,"fork":false,"pushed_at":"2016-04-30T03:24:36.000Z","size":6872,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T05:28:52.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradmartin.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":"2016-02-11T21:55:01.000Z","updated_at":"2016-04-04T14:53:43.000Z","dependencies_parsed_at":"2022-09-12T10:20:09.281Z","dependency_job_id":null,"html_url":"https://github.com/bradmartin/nativescript-facebookrebound","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bradmartin/nativescript-facebookrebound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-facebookrebound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-facebookrebound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-facebookrebound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-facebookrebound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmartin","download_url":"https://codeload.github.com/bradmartin/nativescript-facebookrebound/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-facebookrebound/sbom","scorecard":{"id":250404,"data":{"date":"2025-08-11","repo":{"name":"github.com/bradmartin/nativescript-facebookrebound","commit":"8bb529fa8c2353df88ecb0827eabfbf038f5eeb4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: demo/platforms/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars/classes.jar:1","Warn: binary detected: demo/platforms/android/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars/classes.jar:1","Warn: binary detected: demo/platforms/android/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars/libs/internal_impl-23.1.1.jar:1"],"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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 'master'"],"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"}}]},"last_synced_at":"2025-08-17T08:20:19.543Z","repository_id":57308513,"created_at":"2025-08-17T08:20:19.543Z","updated_at":"2025-08-17T08:20:19.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":[],"created_at":"2026-02-05T03:00:21.768Z","updated_at":"2026-02-16T13:01:54.927Z","avatar_url":"https://github.com/bradmartin.png","language":"JavaScript","funding_links":[],"categories":["Awesome {N} [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Table of Contents"],"readme":"[![npm](https://img.shields.io/npm/v/nativescript-facebookrebound.svg)](https://www.npmjs.com/package/nativescript-facebookrebound)\n[![npm](https://img.shields.io/npm/dt/nativescript-facebookrebound.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-facebookrebound)\n\n# nativescript-facebookrebound :basketball:\nNativeScript plugin to provide access to Facebook's Spring Animations for Android.\nThis is just a simple wrapper to remove some of the complexity of Rebound, if you want to provide more \"sugar\"\non the native methods in the Rebound library then submit a PR :)\n\n### FacebookRebound Usage \n![FacebookRebound](screens/facebookRebound.gif)\n\n## Installation\n`npm install nativescript-facebookrebound`\n\n## Usage\n\nTypically, you'll want to attach a Spring during the `loaded` event for your view item\n### XML:\n```XML\n \u003cImage tap=\"springThis\" height=\"240\" loaded=\"picLoaded\" src=\"~/images/deadpool2.jpg\" stretch=\"aspectFit\" /\u003e\n```\n \n### JS:\n```JS\nvar rebound = require(\"nativescript-facebookrebound\");\n\n\nfunction picLoaded (args) {\n\n    // Getting the native android \u003cimg src=\"file:///C:\\Users\\Brad\\Source\\Repos\\nativescript-facebookrebound\\screens\\facebookRebound.gif\" /\u003eview (android.view.ImageView in this example)\n    var view = args.object.android;\n\n    // create a Rebound Spring() ( TENSION, FRICTION ) -- @returns a Spring() if successful\n    rebound.createSpring(500, 10).then(function (result) {\n\n        // Now we have a Spring to work with.\n        Spring = result;       \n\n        // called whenever the spring is updated\n        rebound.onSpringUpdate(function () {\n            var mappedValue = com.facebook.rebound.SpringUtil.mapValueFromRangeToRange(Spring.getCurrentValue(), 0, 1, 1, 0.5);\n            view.setScaleX(mappedValue);\n            view.setScaleY(mappedValue);\n        });\n\n        // called whenever the spring leaves its resting state\n        rebound.onSpringActivate(function () {\n            console.log('setSpringActivate started...');\n        });\n\n        // called whenever the spring notifies of displacement state changes\n        rebound.onSpringAtEndState(function () {\n            console.log('setSpringAtEndState...');\n        });\n\n        // called whenever the spring achieves a resting state\n        rebound.onSpringAtRest(function () {\n            console.log('setSpringAtRest...');\n            // Here you could do something like hide a view or trigger more spring if you wanted...\n        });\n\n    }, function (err) {\n        alert(\"Error in rebound.createSpring(): \" + err);\n    });\n}\nexports.picLoaded = picLoaded;\n\n\nfunction springThis(args) {\n    // quick boolean to check if we are going up or down\n    if (mMovedUp) {\n        // setEndValue():  set the rest value to determine the displacement for the spring\n        Spring.setEndValue(0);\n    } else {\n        Spring.setEndValue(1);\n    }\n    mMovedUp = !mMovedUp;\n}\nexports.springThis = springThis;\n```\n\n### API\n\n* **createSpring**(tension: number, friction: damper) Promise...\n    * returns - Spring()\n\n#### Once you have a Spring returned from *createSpring()*, you set your callbacks for the listener events:\n\n* **onSpringUpdate**(function)\n* **onSpringActivate**(function)\n* **onSpringAtEndState**(function)\n* **onSpringAtRest**(function)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBradMartin%2Fnativescript-facebookrebound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBradMartin%2Fnativescript-facebookrebound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBradMartin%2Fnativescript-facebookrebound/lists"}