{"id":4305,"url":"https://github.com/DispatcherInc/react-native-seekbar-android","last_synced_at":"2025-08-04T01:31:50.654Z","repository":{"id":57339850,"uuid":"45720444","full_name":"DispatcherInc/react-native-seekbar-android","owner":"DispatcherInc","description":"A React Native wrapper Android's SeekBar.","archived":false,"fork":false,"pushed_at":"2015-11-07T03:35:20.000Z","size":0,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-16T17:53:50.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/DispatcherInc.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":"2015-11-07T03:11:37.000Z","updated_at":"2023-03-09T02:36:59.000Z","dependencies_parsed_at":"2022-09-16T13:21:07.396Z","dependency_job_id":null,"html_url":"https://github.com/DispatcherInc/react-native-seekbar-android","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/DispatcherInc%2Freact-native-seekbar-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DispatcherInc%2Freact-native-seekbar-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DispatcherInc%2Freact-native-seekbar-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DispatcherInc%2Freact-native-seekbar-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DispatcherInc","download_url":"https://codeload.github.com/DispatcherInc/react-native-seekbar-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582487,"owners_count":17940587,"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-01-05T20:17:07.502Z","updated_at":"2024-12-07T08:30:27.982Z","avatar_url":"https://github.com/DispatcherInc.png","language":"Java","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-seekbar-android\nA React Native wrapper Android's SeekBar.\n\n## Example\n\n```js\nvar SeekBarAndroid = require('react-native-seekbar-android');\n\nvar SeekBarExample = React.createClass({\n  getInitialState: function() {\n    return {\n      value: 17,\n      max: 200,\n      initialValue: 20\n    };\n  },  \n  render: function() {\n    return (\n          \n            \u003cView style={{flex: 1}}\u003e\n              \u003cText\u003e{this.state.value}\u003c/Text\u003e\n              \u003cSeekBarAndroid progress={this.state.initialValue} max={this.state.max} onChange={(val) =\u003e { this.setState({value: val}); }} /\u003e              \n            \u003c/View\u003e    \n    );\n  }\n});\n```\n\n## Install\n\n### Step 1 - Install the npm package\n\n```sh\n$ npm install react-native-seekbar-android --save\n```\n\n### Step 2 - Update Gradle Settings\n\n```gradle\n// file: android/settings.gradle\n...\n\ninclude ':react-native-seekbar-android', ':app'\nproject(':react-native-seekbar-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-seekbar-android')\n```\n\n### Step 3 - Update app Gradle Build\n\n```gradle\n// file: android/app/build.gradle\n...\n\ndependencies {\n    ...\n    compile project(':react-native-seekbar-android')\n}\n```\n\n### Step 4 - Register React Package\n\n```java\n...\nimport com.dispatcher.rnseekbar.RNSeekBarPackage; // \u003c-- import\n\npublic class MainActivity extends FragmentActivity implements DefaultHardwareBackBtnHandler {\n\n    private ReactInstanceManager mReactInstanceManager;\n    private ReactRootView mReactRootView;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        mReactRootView = new ReactRootView(this);\n        mReactInstanceManager = ReactInstanceManager.builder()\n                .setApplication(getApplication())\n                .setBundleAssetName(\"index.android.bundle\")\n                .setJSMainModuleName(\"index.android\")\n                .addPackage(new MainReactPackage())\n                .addPackage(new RNSeekBarPackage()) // \u003c-- Register package here\n                .setUseDeveloperSupport(BuildConfig.DEBUG)\n                .setInitialLifecycleState(LifecycleState.RESUMED)\n                .build();\n        mReactRootView.startReactApplication(mReactInstanceManager, \"AwesomeProject\", null);\n        setContentView(mReactRootView);\n    }\n...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDispatcherInc%2Freact-native-seekbar-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDispatcherInc%2Freact-native-seekbar-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDispatcherInc%2Freact-native-seekbar-android/lists"}