{"id":4174,"url":"https://github.com/pjjanak/react-native-nested-stylesheets","last_synced_at":"2025-12-27T04:54:35.520Z","repository":{"id":29657012,"uuid":"33198838","full_name":"pjjanak/react-native-nested-stylesheets","owner":"pjjanak","description":"Extends React Native's StyleSheet Object to allow for nesting of styles","archived":false,"fork":false,"pushed_at":"2017-05-10T19:49:57.000Z","size":156,"stargazers_count":78,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-07T07:34:39.041Z","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/pjjanak.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":"2015-03-31T17:13:39.000Z","updated_at":"2023-03-09T02:17:00.000Z","dependencies_parsed_at":"2022-09-07T10:11:36.649Z","dependency_job_id":null,"html_url":"https://github.com/pjjanak/react-native-nested-stylesheets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pjjanak/react-native-nested-stylesheets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjjanak%2Freact-native-nested-stylesheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjjanak%2Freact-native-nested-stylesheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjjanak%2Freact-native-nested-stylesheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjjanak%2Freact-native-nested-stylesheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjjanak","download_url":"https://codeload.github.com/pjjanak/react-native-nested-stylesheets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjjanak%2Freact-native-nested-stylesheets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268634064,"owners_count":24281896,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-05T20:17:03.441Z","updated_at":"2025-12-27T04:54:35.447Z","avatar_url":"https://github.com/pjjanak.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-nested-stylesheet\n\nNestable stylesheets for react-native.\n\n## Installation\n`npm install react-native-nested-stylesheet`\n\n## Usage notes\nThis plugin will allow you to create styles of the following format:\n\n```\n...\nnamespace: {\n\tstyleA: {...},\n\tstyleB: {...},\n},\n...\n```\n\nWith the plain `StyleSheet` API you can only create stylesheets with one level. It should noted that `NestedStyleSheet` does not create cascading selectors. This is merely to allow namespacing of styles (e.g. containing the styles for all items in a specific `ListView`).\n\nNote: You are only allowed to include other objects within a nested style. You cannot define rules at the namespace level.\n\n## Usage Example\n```\nvar React = require('react-native');\nvar NestedStyleSheet = require('react-native-nested-stylesheet');\n\nvar {\n\tView,\n\tText,\n\tImage,\n} = React;\n\nvar styles = NestedStyleSheet.create({\n\tcells: {\n\t\tcontainer: {\n\t\t\tflex: 1,\n\t\t\tflexDirection: 'row',\n\t\t\talignItems: 'center',\n\t\t},\n\t\tthumbnail: {\n\t\t\twidth: 53,\n\t\t\theight: 81,\n\t\t},\n\t\tcontent: {\n\t\t\tflex: 1,\n\t\t},\n\t},\n});\n\nvar Demo = React.createClass({\n\trender: function() {\n\t\treturn (\n\t\t\t\u003cView style={styles.cells.container}\u003e\n\t\t\t\t\u003cImage source={{...}} style={styles.cells.thumbnail}\n\t\t\t\t\u003cView style={styles.content}\u003e\n\t\t\t\t\t\u003cText\u003e...\u003c/Text\u003e\n\t\t\t\t\u003c/View\u003e\n\t\t\t\u003c/View\u003e\n\t\t);\n\t},\n});\n\nmodule.exports = Demo;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjjanak%2Freact-native-nested-stylesheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjjanak%2Freact-native-nested-stylesheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjjanak%2Freact-native-nested-stylesheets/lists"}