{"id":4252,"url":"https://github.com/lwhiteley/react-native-android-iconify","last_synced_at":"2025-04-22T17:22:01.373Z","repository":{"id":57335242,"uuid":"43271831","full_name":"lwhiteley/react-native-android-iconify","owner":"lwhiteley","description":"icons for react-native android using android-iconify","archived":false,"fork":false,"pushed_at":"2016-12-19T16:26:29.000Z","size":12,"stargazers_count":31,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T17:21:56.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-android-iconify","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/lwhiteley.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":"2015-09-28T00:38:02.000Z","updated_at":"2025-01-10T10:32:46.000Z","dependencies_parsed_at":"2022-08-31T16:43:48.010Z","dependency_job_id":null,"html_url":"https://github.com/lwhiteley/react-native-android-iconify","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/lwhiteley%2Freact-native-android-iconify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Freact-native-android-iconify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Freact-native-android-iconify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwhiteley%2Freact-native-android-iconify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwhiteley","download_url":"https://codeload.github.com/lwhiteley/react-native-android-iconify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285773,"owners_count":21405305,"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:05.866Z","updated_at":"2025-04-22T17:22:01.349Z","avatar_url":"https://github.com/lwhiteley.png","language":"Java","readme":"# react-native-android-iconify\nicons for react native android using android-iconify\n\n## Installation and How to use\n\n#### Step 1 - NPM Install\n\n```shell\nnpm install --save react-native-android-iconify\n```\n#### Step 2 - Update Gradle Settings\n\n```gradle\n// file: android/settings.gradle\n...\n\ninclude ':reacticonify', ':app'\nproject(':reacticonify').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-iconify/app')\n```\n\n#### Step 3 - Update Gradle Build\n\n```gradle\n// file: android/app/build.gradle\n...\n\ndependencies {\n    ...\n    compile project(':reacticonify')\n}\n```\n\n#### Step 4 - Register React Package\n\n```java\n...\nimport com.lwhiteley.reacticonify.ReactIconifyPackage; // import\n\npublic class MainActivity extends Activity 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 ReactIconifyPackage()) // register react iconify package here\n                .setUseDeveloperSupport(BuildConfig.DEBUG)\n                .setInitialLifecycleState(LifecycleState.RESUMED)\n                .build();\n        mReactRootView.startReactApplication(mReactInstanceManager, \"AwesomeProject\", null);\n        setContentView(mReactRootView);\n    }\n...\n\n```\n\n#### Step 5 - Require and use in Javascript\n\n```js\n// file: index.android.js\n\nvar React = require('react-native');\nvar { IconTextView } = require('react-native-android-iconify');\nvar { AppRegistry,StyleSheet,Text,View } = React;\n\nvar AwesomeProject = React.createClass({\n    render: function() {\n        return (\n            \u003cView style={styles.container}\u003e\n                \u003cIconTextView text='{fa-facebook}' style={styles.icon} /\u003e\n            \u003c/View\u003e\n        );\n    }\n});\n\nvar styles = StyleSheet.create({\n  icon: {\n    width:40,\n    height:40,\n    fontSize:40,\n    color:'#0066FF',\n  },\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n  }\n});\n\nAppRegistry.registerComponent('AwesomeProject', () =\u003e AwesomeProject);\n```\n\n## Credits\n\n- [android-iconify](https://github.com/JoanZapata/android-iconify)\n\n## Notes\n- only IconTextView was implemented so far, will implement the other widgets shortly\n- all available icon modules of [android-iconify](https://github.com/JoanZapata/android-iconify) were included\n- as seen above font size and color are controlled by css, all other features of [android-iconify](https://github.com/JoanZapata/android-iconify) remain the same\n- Please report any issues or send patches to get fixes in\n","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwhiteley%2Freact-native-android-iconify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwhiteley%2Freact-native-android-iconify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwhiteley%2Freact-native-android-iconify/lists"}