{"id":17961871,"url":"https://github.com/kyle-ssg/react-native-common-elements","last_synced_at":"2025-03-25T04:31:35.679Z","repository":{"id":57336161,"uuid":"77849836","full_name":"kyle-ssg/react-native-common-elements","owner":"kyle-ssg","description":"Common components for react native","archived":false,"fork":false,"pushed_at":"2018-03-30T12:44:14.000Z","size":4403,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-28T05:46:00.064Z","etag":null,"topics":["boilerplate","component","react-native"],"latest_commit_sha":null,"homepage":null,"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/kyle-ssg.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":"2017-01-02T17:22:41.000Z","updated_at":"2020-10-18T13:51:20.000Z","dependencies_parsed_at":"2022-09-11T05:54:20.515Z","dependency_job_id":null,"html_url":"https://github.com/kyle-ssg/react-native-common-elements","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/kyle-ssg%2Freact-native-common-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-ssg%2Freact-native-common-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-ssg%2Freact-native-common-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-ssg%2Freact-native-common-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyle-ssg","download_url":"https://codeload.github.com/kyle-ssg/react-native-common-elements/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245401360,"owners_count":20609161,"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":["boilerplate","component","react-native"],"created_at":"2024-10-29T11:11:53.359Z","updated_at":"2025-03-25T04:31:35.664Z","avatar_url":"https://github.com/kyle-ssg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-common-elements\n\n\u003cimg src=\"./screen.gif\"/\u003e\n\n###### Having developed and published a large number of react-native applications and boilerplate code, of all the things I can't live without is this set of customisable layout components.\n\n## Usage\n- ```npm i react-native-common-elements --save```\n- ```import { init, em, Row, FormGroup, Flex, Container, Column, Text, Bold, H1, H2, H3, H4, H5, H6, globalise } from 'react-native-common-elements';```\n\n## Components\n- ```\u003cH1\u003e...\u003cH6\u003e``` - text ranging from 1em to 2.5 em\n- ```\u003cText/\u003e``` - text with standardised font size and styles\n- ```\u003cBold/\u003e``` - same as text but bold\n- ```\u003cContainer/\u003e``` - container with standardised guttering\n- ```\u003cRow space noPad/\u003e``` - Horizontal view with options to space apart and negate container gutter padding\n- ```\u003cFlex/\u003e``` - view with flex, can override value with ``` value={x}```\n- ```\u003cColumn/\u003e``` columns within a row element, uses standard guttering\n\n## Util\n- ```em(value, baseValue)``` returns unit based on device width\n- ```globalise()``` assigns components and em to global scope\n\n\n# Customisation\nOptionally you can override any style property or style variables by calling init, these are deeply merged when rendering\n**see styles.js and styleVariables.js for full list of properties**\n```\ninit({text:{color:'red'},h1:{color:'blue'}},{fontSize:16});\n```\n\n\n## Example\n```\n\u003cFlex\u003e\n    \u003cRow space\u003e\n        \u003cColumn\u003e\n            \u003cText\u003eText\u003c/Text\u003e\n        \u003c/Column\u003e\n        \u003cColumn\u003e\n            \u003cText\u003eText2\u003c/Text\u003e\n        \u003c/Column\u003e\n    \u003c/Row\u003e\n    \u003cContainer style={{ justifyContent: 'center' }}\u003e\n        \u003cFormGroup\u003e\n            \u003cH1\u003eHeader 1\u003c/H1\u003e\n            \u003cH2\u003eHeader 2\u003c/H2\u003e\n            \u003cH3\u003eHeader 3\u003c/H3\u003e\n            \u003cH4\u003eHeader 4\u003c/H4\u003e\n            \u003cH5\u003eHeader 5\u003c/H5\u003e\n            \u003cH6\u003eHeader 6\u003c/H6\u003e\n            \u003cBold\u003eHeader 6\u003c/Bold\u003e\n        \u003c/FormGroup\u003e\n        \u003cFormGroup\u003e\n            \u003cRow\u003e\n                \u003cFlex value={1 / 3}\u003e\n                    \u003cBold\u003e1/3\u003c/Bold\u003e\n                \u003c/Flex\u003e\n                \u003cFlex value={2 / 3}\u003e\n                    \u003cBold\u003e2/3\u003c/Bold\u003e\n                \u003c/Flex\u003e\n            \u003c/Row\u003e\n        \u003c/FormGroup\u003e\n    \u003c/Container\u003e\n\u003c/Flex\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyle-ssg%2Freact-native-common-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyle-ssg%2Freact-native-common-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyle-ssg%2Freact-native-common-elements/lists"}