{"id":24064000,"url":"https://github.com/qeepsake/react-native-text-with","last_synced_at":"2025-07-19T19:07:06.031Z","repository":{"id":38173666,"uuid":"126614847","full_name":"Qeepsake/react-native-text-with","owner":"Qeepsake","description":"Extension of \u003cText/\u003e component to allow easy placement of object, image or icon beside text in React Native","archived":false,"fork":false,"pushed_at":"2023-04-24T23:59:07.000Z","size":14590,"stargazers_count":4,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T07:52:48.327Z","etag":null,"topics":["extension","icons","image","react-native","text"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Qeepsake.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,"governance":null}},"created_at":"2018-03-24T15:49:45.000Z","updated_at":"2022-01-02T01:49:41.000Z","dependencies_parsed_at":"2023-07-20T18:15:30.719Z","dependency_job_id":null,"html_url":"https://github.com/Qeepsake/react-native-text-with","commit_stats":null,"previous_names":["lukebrandonfarrell/react-native-text-with"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Qeepsake/react-native-text-with","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-text-with","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-text-with/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-text-with/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-text-with/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qeepsake","download_url":"https://codeload.github.com/Qeepsake/react-native-text-with/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-text-with/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265992591,"owners_count":23860934,"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":["extension","icons","image","react-native","text"],"created_at":"2025-01-09T10:06:05.824Z","updated_at":"2025-07-19T19:07:06.014Z","avatar_url":"https://github.com/Qeepsake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-text-with\n\n[![npm](https://img.shields.io/npm/v/react-native-text-with.svg?style=flat-square)](https://www.npmjs.com/package/react-native-text-with)\n[![npm licence](http://img.shields.io/npm/l/react-native-text-with.svg?style=flat-square)](https://npmjs.org/package/react-native-text-with)\n[![npm downloads](http://img.shields.io/npm/dt/react-native-text-with.svg?style=flat-square)](https://npmjs.org/package/react-native-text-with)\n\nExtension of the `\u003cText/\u003e` component to allow easy placement of an object, image or icon beside text in React Native\n\n![To the left](https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-text-with/one.png)\n![To the right](https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-text-with/two.png)\n![At the top](https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-text-with/three.png)\n![At the bottom](https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-text-with/four.png)\n![No object](https://raw.githubusercontent.com/LukeBrandonFarrell/open-source-images/master/react-native-text-with/five.png)\n\n## Install\n\nTo get started install via npm:\n```sh\n npm install react-native-text-with --save\n```\n\n## Usage\n\nTo use in React Native. Import:\n```js\n import TextWith from 'react-native-text-with';\n```\n\nThen add it to your code:\n```js\n\u003cTextWith\n  object={\u003cImage source={}/\u003e}\n  objectPosition='left'\n  objectMargin={5}\u003e\n  This is some text with an image to the left\n\u003c/TextWith\u003e\n\n```\n\nWorks as a normal react \u003cText/\u003e component. All probs available from `\u003cText/\u003e`.\n```js\n\u003cTextWith numberOfLines={1} onPress={console.log('This is a ordinary text component')}\u003e\n  This is some text\n\u003c/TextWith\u003e\n```\n\nWorks well with [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons). But it's not a dependency! nor a necessity.\n```js\n\u003cTextWith\n  object={\u003cIcon name='pencil' size={ 18 }/\u003e}\n  objectPosition='left'\n  objectMargin={20}\u003e\n  This is some text\n\u003c/TextWith\u003e\n```\n\n## Props\n\n**Note:** The component can take all props available to `\u003cText/\u003e`\n\n| Prop            | Type          | Optional  | Default              | Description                                                                             |\n| --------------- | ------------- | --------- | -------------------- | --------------------------------------------------------------------------------------- |\n| children        | Any           | Yes       |                      | Pass anything into text `\u003cTextWith\u003e` I am text! `\u003c/TextWith\u003e`                           |\n| object          | object        | Yes       |                      | Image, Icon or component of your choice to be rendered beside text                      |\n| objectPosition  | enum          | Yes       | 'left'               | Where the component should be rendered ('left', 'right', 'top', 'bottom')               |\n| objectMargin    | number        | Yes       | 4                    | Direction of the collage: 'row' or 'column'.                                            |\n| textStyle       | object        | Yes       |                      | Style to be applied to the text component                                               |\n| containerStyle  | object        | Yes       | alignItems: 'center' | Style to be applied to the container component. Text and Icon.                          |\n\n## Contributing\n\nIf you want to issue a PR, go ahead ;)\n\n## Authors\n\n* [**Luke Brandon Farrell**](https://lukebrandonfarrell.com/) - *Author*\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Freact-native-text-with","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeepsake%2Freact-native-text-with","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Freact-native-text-with/lists"}