{"id":23420904,"url":"https://github.com/nericode/nativescript-text-justify","last_synced_at":"2025-04-09T09:33:55.305Z","repository":{"id":44118353,"uuid":"169199123","full_name":"nericode/nativescript-text-justify","owner":"nericode","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T16:43:53.000Z","size":123726,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T03:41:57.118Z","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/nericode.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":"2019-02-05T06:22:26.000Z","updated_at":"2019-11-09T02:35:34.000Z","dependencies_parsed_at":"2023-01-26T09:31:29.922Z","dependency_job_id":null,"html_url":"https://github.com/nericode/nativescript-text-justify","commit_stats":null,"previous_names":["nericodec/nativescript-text-justify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-text-justify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-text-justify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-text-justify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-text-justify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nericode","download_url":"https://codeload.github.com/nericode/nativescript-text-justify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012509,"owners_count":21033216,"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-12-23T02:13:09.886Z","updated_at":"2025-04-09T09:33:55.284Z","avatar_url":"https://github.com/nericode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text Justify ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)\n\n## Installation\n\nIdeally it would be something like:\n\n```javascript\ntns plugin add nativescript-text-justify\n```\n\n## Usage\n\n### Only Android\n\nTo establish a font type, it is necessary to create a directory `assets \u003e fonts` with the fonts to be used:\nDirectory:\n\n`App_Resources \u003e Android \u003e src \u003e main \u003e \u003ccreate paths\u003e assets \u003e fonts \u003e \u003cname\u003e.ttf`\n\nShow demo for more info.\n\n```xml\n\u003cPage\n    xmlns=\"http://schemas.nativescript.org/tns.xsd\"\n    xmlns:textJustify=\"nativescript-text-justify\"\n    loaded=\"pageLoaded\"\u003e\n    \u003cStackLayout\u003e\n        \u003ctextJustify:TextJustify\n            textColor=\"black\"\n            textSize=\"22\"\n            textAlignment=\"true\"\n            textTypefacePath=\"robotoitalic.ttf\"\n            text=\"This text is for test, This text is for test, This text is for test, This text is for test.\"\u003e\n        \u003c/textJustify:TextJustify\u003e\n    \u003c/StackLayout\u003e\n\u003c/Page\u003e\n```\n\n## Angular\n\nAdd element in `app.module.ts`:\n\n```ts\nimport { registerElement } from \"nativescript-angular/element-registry\";\nimport { TextJustify } from \"nativescript-text-justify\";\n\nregisterElement(\"TextJustify\", () =\u003e TextJustify);\n```\n\nIn .html:\n\n```html\n\u003cTextJustify\n    textColor=\"black\"\n    textSize=\"22\"\n    textAlignment=\"true\"\n    textTypefacePath=\"robotoitalic.ttf\"\n    text=\"This text is for test, This text is for test, This text is for test, This text is for test.\"\n\u003e\n\u003c/TextJustify\u003e\n```\n\n## API\n\n| Property (Android) | Default                  | Description                                   |\n| ------------------ | ------------------------ | --------------------------------------------- |\n| text               | text: string             | Set the text                                  |\n| alignment          | alignment: boolean       | Set true for justified or false               |\n| textSize           | textSize: number         | Set textSize 1 and \u003c= 23                      |\n| textColor          | textColor: string        | Set textColor #RRGGBB 'white', 'black', etc.. |\n| textTypefacePath   | textTypefacePath: string | Set textTypefacePath example: roboto.ttf      |\n\n| Property (iOS) | Default            | Description                                   |\n| -------------- | ------------------ | --------------------------------------------- |\n| text           | text: string       | Set the text                                  |\n| alignment      | alignment: boolean | Set true for justified or false               |\n| color          | color: string      | Set textColor #RRGGBB 'white', 'black', etc.. |\n| textWrap       | textWrap: boolean  | Property of Label                             |\n| fontSize       | fontSize: number   | Property of Label                             |\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-text-justify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnericode%2Fnativescript-text-justify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-text-justify/lists"}