{"id":19273942,"url":"https://github.com/rintoj/native-x-text","last_synced_at":"2025-02-23T20:45:04.614Z","repository":{"id":47766029,"uuid":"337309270","full_name":"rintoj/native-x-text","owner":"rintoj","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-13T20:39:15.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T05:17:33.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rintoj.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":"2021-02-09T06:07:51.000Z","updated_at":"2021-08-13T20:38:25.000Z","dependencies_parsed_at":"2022-08-27T22:40:34.078Z","dependency_job_id":null,"html_url":"https://github.com/rintoj/native-x-text","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rintoj","download_url":"https://codeload.github.com/rintoj/native-x-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240378873,"owners_count":19792039,"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-11-09T20:44:31.838Z","updated_at":"2025-02-23T20:45:04.558Z","avatar_url":"https://github.com/rintoj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# native-x-text\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nThis component adds space between to other components\n\n## Install\n\n### Yarn\n\n```sh\nyarn add native-x-text\n```\n\n### NPM\n\n```sh\nnpm install native-x-text\n```\n\n## Usage\n\n```tsx\nimport { Text } from 'native-x-text'\n\nfunction MyComponent() {\n  return (\n    \u003cStack\u003e\n      ...\n      \u003cText fontSize='xx-large' bold\u003e\n        Header 1\n      \u003c/Text\u003e\n      \u003cText fontSize='x-large' bold\u003e\n        Header 2\n      \u003c/Text\u003e\n      \u003cText fontSize='large' bold\u003e\n        Header 3\n      \u003c/Text\u003e\n      \u003cText\u003eBody Text\u003c/Text\u003e\n      \u003cText fontSize='small'\u003eSecondary Text\u003c/Text\u003e\n      \u003cText fontSize='x-small'\u003eCaption\u003c/Text\u003e\n      \u003cText fontSize='xx-small'\u003eFooter\u003c/Text\u003e\n      ...\n    \u003c/Stack\u003e\n  )\n}\n```\n\n## Style Inheritance\n\n```tsx\n\u003cText semiBold fontSize={'x-small'} textColor={COLOR.ERROR}\u003e\n  Hello, \u003cText bold\u003eworld!\u003c/Text\u003e\n\u003c/Text\u003e\n```\n\nThe text \"world!\" will inherit all properties of the parent \"Hello,\"\n\n## API\n\n| Property               | Default Value | Usage                                                                      |\n| ---------------------- | ------------- | -------------------------------------------------------------------------- |\n| fill?: boolean         | false         | Fill container or available space                                          |\n| bold?: boolean         | false         | Show text in bold                                                          |\n| semiBold?: boolean     | false         | Show text in semi-bold (works only if bold is set to false)                |\n| thin?: boolean         | false         | Show text in think font (works only if bold and semiBold are set to false) |\n| italic?: boolean       | false         | Show text in italic                                                        |\n| alignLeft?: boolean    | false         | Align left                                                                 |\n| alignCenter?: boolean  | false         | Align center                                                               |\n| alignRight?: boolean   | false         | Align right                                                                |\n| children?: string      |               | Content                                                                    |\n| upperCase?: boolean    | false         | Show content in upper case                                                 |\n| style?: TextStyle      |               | Additional style                                                           |\n| numberOfLines?: number |               | Total number of lines to show                                              |\n| onPress?: () =\u003e void   |               | Callback on tap                                                            |\n\n## Automatic Release\n\nHere is an example of the release type that will be done based on a commit messages:\n\n| Commit message      | Release type          |\n| ------------------- | --------------------- |\n| fix: [comment]      | Patch Release         |\n| feat: [comment]     | Minor Feature Release |\n| perf: [comment]     | Major Feature Release |\n| doc: [comment]      | No Release            |\n| refactor: [comment] | No Release            |\n| chore: [comment]    | No Release            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fnative-x-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frintoj%2Fnative-x-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fnative-x-text/lists"}