{"id":19273936,"url":"https://github.com/rintoj/native-x-image","last_synced_at":"2025-02-23T20:45:10.002Z","repository":{"id":57308332,"uuid":"335864288","full_name":"rintoj/native-x-image","owner":"rintoj","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-10T10:28:50.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T17:19:55.271Z","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-04T06:44:38.000Z","updated_at":"2021-08-10T10:27:47.000Z","dependencies_parsed_at":"2022-09-07T00:20:08.594Z","dependency_job_id":null,"html_url":"https://github.com/rintoj/native-x-image","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-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rintoj","download_url":"https://codeload.github.com/rintoj/native-x-image/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.366Z","updated_at":"2025-02-23T20:45:09.971Z","avatar_url":"https://github.com/rintoj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# native-x-image\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\nWrap this component around another component to enable user interaction\n\n## Install\n\n### Yarn\n\n```sh\nyarn add native-x-image\n```\n\n### NPM\n\n```sh\nnpm install native-x-image\n```\n\nNote: This module uses react-native-fast-image internally. Make sure you have it configured.\n\nSee: [`react-native-fast-image`](https://github.com/DylanVann/react-native-fast-image#usage)\n\n## Usage\n\n```tsx\nimport { Image } from 'native-x-image'\n\nfunction MyComponent() {\n  const onTap = () =\u003e {\n    // handle action\n  }\n  return \u003cImage source={{ uri: 'https://' }} /\u003e\n}\n\n// or with local\n\nfunction MyComponent({ user }: { user: User }) {\n  const onTapUser = (user: User) =\u003e {\n    // handle action\n  }\n  return \u003cImage source={require('./local-image.png')} /\u003e\n}\n```\n\n## API\n\n| Property               | Default Value | Usage                                         |\n| ---------------------- | ------------- | --------------------------------------------- |\n| source: Source         |               | Image to show                                 |\n| fill?: boolean         | false         | Fill width of the container                   |\n| width?: number         |               | Width of the image                            |\n| height?: number        |               | Height of the image                           |\n| resizeMode: ResizeMode | 'fill'        | Valid values: contain, cover, stretch, center |\n| fallbackSource: Source |               | Image to show when the image is not available |\n\nAnd all properties from:\n\n- [`react-native-fast-image`](https://github.com/DylanVann/react-native-fast-image#properties)\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-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frintoj%2Fnative-x-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fnative-x-image/lists"}