{"id":18783563,"url":"https://github.com/sticknet/react-native-lightbox","last_synced_at":"2025-07-18T09:36:59.633Z","repository":{"id":57702113,"uuid":"504192960","full_name":"sticknet/react-native-lightbox","owner":"sticknet","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-16T14:44:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-21T08:48:44.743Z","etag":null,"topics":[],"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/sticknet.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}},"created_at":"2022-06-16T14:43:47.000Z","updated_at":"2022-06-16T14:44:05.000Z","dependencies_parsed_at":"2022-09-26T21:11:03.489Z","dependency_job_id":null,"html_url":"https://github.com/sticknet/react-native-lightbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sticknet/react-native-lightbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticknet%2Freact-native-lightbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticknet%2Freact-native-lightbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticknet%2Freact-native-lightbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticknet%2Freact-native-lightbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sticknet","download_url":"https://codeload.github.com/sticknet/react-native-lightbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticknet%2Freact-native-lightbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265735472,"owners_count":23819750,"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-07T20:39:46.682Z","updated_at":"2025-07-18T09:36:59.602Z","avatar_url":"https://github.com/sticknet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-lightbox\n\n## Installation\n\n```\nyarn add react-native-lightbox\n```\n\n## Usage\n\n`navigator` property is optional but recommended on iOS, see next section for `Navigator` configuration.\n\n```js\nimport Lightbox from 'react-native-lightbox';\n\nconst LightboxView ({ navigator }) =\u003e (\n  \u003cLightbox navigator={navigator}\u003e\n    \u003cImage\n      style={{ height: 300 }}\n      source={{ uri: 'http://knittingisawesome.com/wp-content/uploads/2012/12/cat-wearing-a-reindeer-hat1.jpg' }}\n    /\u003e\n  \u003c/Lightbox\u003e\n);\n```\n\n### Navigator setup/Android support\n\nFor android support you must pass a reference to a `Navigator` since it does not yet have the `Modal` component and is not on the official todo list. See the `Example` project for a complete example.\n\n```js\nconst renderScene = (route, navigator) =\u003e {\n  const Component = route.component;\n\n  return (\n    \u003cComponent navigator={navigator} route={route} {...route.passProps} /\u003e\n  );\n};\n\nconst MyApp = () =\u003e (\n  \u003cNavigator\n    ref=\"navigator\"\n    style={{ flex: 1 }}\n    renderScene={renderScene}\n    initialRoute={{\n      component: LightboxView,\n    }}\n  /\u003e\n);\n```\n\n## Properties\n\n| Prop | Type | Description |\n|---|---|---|\n|**`activeProps`**|`object`|Optional set of props applied to the content component when in lightbox mode. Usable for applying custom styles or higher resolution image source.|\n|**`renderHeader(close)`**|`function`|Custom header instead of default with X button|\n|**`renderContent`**|`function`|Custom lightbox content instead of default child content|\n|**`willClose`**|`function`|Triggered before lightbox is closed|\n|**`onClose`**|`function`|Triggered when lightbox is closed|\n|**`onOpen`**|`function`|Triggered when lightbox is opened|\n|**`didOpen`**|`function`|Triggered after lightbox is opened|\n|**`underlayColor`**|`string`|Color of touchable background, defaults to `black`|\n|**`backgroundColor`**|`string`|Color of lightbox background, defaults to `black`|\n|**`swipeToDismiss`**|`bool`|Enables gestures to dismiss the fullscreen mode by swiping up or down, defaults to `true`.|\n|**`springConfig`**|`object`|[`Animated.spring`](https://facebook.github.io/react-native/docs/animations.html) configuration, defaults to `{ tension: 30, friction: 7 }`.|\n\n## Demo\n\n![Demo](https://cloud.githubusercontent.com/assets/378279/9074360/16eac5d6-3b09-11e5-90af-a69980e9f4be.gif)\n\n## Example\n\nCheck full example in the `Example` folder.\n\n## License\n\n[MIT License](http://opensource.org/licenses/mit-license.html). © Joel Arvidsson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsticknet%2Freact-native-lightbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsticknet%2Freact-native-lightbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsticknet%2Freact-native-lightbox/lists"}