{"id":16513690,"url":"https://github.com/nitin42/native-base-theme-plugin","last_synced_at":"2026-04-13T04:03:00.981Z","repository":{"id":87330442,"uuid":"82462574","full_name":"nitin42/native-base-theme-plugin","owner":"nitin42","description":"A Babel plugin that adds native-base-theme import declaration.","archived":false,"fork":false,"pushed_at":"2017-02-20T12:40:23.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T01:31:57.272Z","etag":null,"topics":["babel","native-base","plugin","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nitin42.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T13:54:15.000Z","updated_at":"2017-05-07T10:09:42.000Z","dependencies_parsed_at":"2023-03-27T20:43:56.536Z","dependency_job_id":null,"html_url":"https://github.com/nitin42/native-base-theme-plugin","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"8e6d0be11f03ab1892470a6cd09bd5079fa1786e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitin42%2Fnative-base-theme-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitin42%2Fnative-base-theme-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitin42%2Fnative-base-theme-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitin42%2Fnative-base-theme-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitin42","download_url":"https://codeload.github.com/nitin42/native-base-theme-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822593,"owners_count":19863305,"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":["babel","native-base","plugin","react","react-native"],"created_at":"2024-10-11T16:09:57.244Z","updated_at":"2025-12-31T01:04:48.357Z","avatar_url":"https://github.com/nitin42.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# native-base-theme-require \n[![Build Status](https://travis-ci.org/nitin42/native-base-theme-plugin.svg?branch=master)](https://travis-ci.org/nitin42/native-base-theme-plugin)\n\n![](https://raw.githubusercontent.com/nitin42/native-base-theme-plugin/master/Group.png)\n\n\u003e A Babel plugin for React Native that adds native-base-theme import declaration in your `index.ios.js`.\n\n## Install\n\n```\nyarn add babel-plugin-native-base-theme-require --dev\n```\n**Make sure that you have installed [yarn](https://yarnpkg.com) (or use npm) and you are using [native base](http://nativebase.io/) UI.**\n\n## Example\n`index.ios.js`\n\n```javascript\nimport React, { Component } from 'react';\nimport {AppRegistry, Text} from 'react-native';\nimport { Container, StyleProvider } from 'native-base';\n​\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cStyleProvider style={getTheme()}\u003e\n        \u003cContainer\u003e\n          \u003cText\u003eHello World\u003c/Text\u003e\n        \u003c/Container\u003e\n      \u003c/StyleProvider\u003e\n    );\n  }\n}\n\nAppRegistry.registerComponent('App', () =\u003e learnNative);\n```\n\nThis will transpiled to,\n\n```javascript\nimport React, { Component } from 'react';\nimport {AppRegistry, Text} from 'react-native';\nimport { Container, StyleProvider } from 'native-base';\nimport getTheme from './native-base-theme/components/index';\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cStyleProvider style={getTheme()}\u003e\n        \u003cContainer\u003e\n          \u003cText\u003eHello World\u003c/Text\u003e\n        \u003c/Container\u003e\n      \u003c/StyleProvider\u003e\n    );\n  }\n}\n\nAppRegistry.registerComponent('App', () =\u003e learnNative);\n```\n\n## Usage\n\nAdd `native-base-theme-require` to your `.babelrc`\n```.babelrc\n{\n  \"plugins\": [\"native-base-theme-require\"]\n}\n```\n\n## Contributing\n* Add unit tests for any new or changed functionality\n* Fix bugs or issues\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitin42%2Fnative-base-theme-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitin42%2Fnative-base-theme-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitin42%2Fnative-base-theme-plugin/lists"}