{"id":20380562,"url":"https://github.com/tobua/react-native-cols","last_synced_at":"2025-04-12T08:34:33.827Z","repository":{"id":57336147,"uuid":"175899647","full_name":"tobua/react-native-cols","owner":"tobua","description":"Grid Component for React Native","archived":false,"fork":false,"pushed_at":"2023-12-10T12:02:41.000Z","size":159,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T21:22:24.010Z","etag":null,"topics":["columns","flexbox","grid","layout","react","react-native"],"latest_commit_sha":null,"homepage":"https://npmjs.com/react-native-cols","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/tobua.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-15T22:34:41.000Z","updated_at":"2023-01-20T14:43:41.000Z","dependencies_parsed_at":"2024-01-24T12:08:32.293Z","dependency_job_id":"50b8ac99-2544-4bb5-8803-98f133cb2166","html_url":"https://github.com/tobua/react-native-cols","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.4666666666666667,"last_synced_commit":"02e29119811df7d3122c8c14ab6e8a45731ad7fa"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Freact-native-cols","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Freact-native-cols/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Freact-native-cols/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Freact-native-cols/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobua","download_url":"https://codeload.github.com/tobua/react-native-cols/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248540839,"owners_count":21121436,"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":["columns","flexbox","grid","layout","react","react-native"],"created_at":"2024-11-15T02:07:50.790Z","updated_at":"2025-04-12T08:34:33.801Z","avatar_url":"https://github.com/tobua.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/tobua/react-native-cols/main/preview.png\" width=\"400\" alt=\"React Native Cols Preview\"\u003e\n\u003c/p\u003e\n\n# React Native Cols\n\n[![npm](https://img.shields.io/npm/v/react-native-cols)](https://npmjs.com/react-native-cols) [![Try in CodeSandbox](https://img.shields.io/badge/Try%20in-CodeSandbox-blue?style=flat-square\u0026logo=codesandbox)](https://codesandbox.io/s/react-native-cols-35q4s)\n\nGrid for React Native Apps.\n\n## Installation\n\n```\nnpm i react-native-cols\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\nimport { Text } from 'react-native'\nimport { Cols, Col } from 'react-native-cols'\n\nclass Screen extends Component {\n  render() {\n    return (\n      \u003cCols\u003e\n        \u003cCol\u003e\n          \u003cText\u003eFirst\u003c/Text\u003e\n        \u003c/Col\u003e\n        \u003cCol span={2}\u003e\n          \u003cText\u003eSecond\u003c/Text\u003e\n        \u003c/Col\u003e\n        \u003cCol\u003e\n          \u003cText\u003eThird\u003c/Text\u003e\n        \u003c/Col\u003e\n      \u003c/Cols\u003e\n    )\n  }\n}\n```\n\n## Props\n\n```jsx\n// Wrapper component with possible props and their defaults.\n\u003cCols\n  cols={4}\n  padding={20}\n  colSpace={10}\n  rowSpace={15}\n  debug={false}\n  style={}\n  colStyle={}\n\u003e\n  // Column component with defaults added.\n  \u003cCol\n    span={1}\n    offset={0}\n    left={true}\n    center={false}\n    right={false}\n    style={}\n  \u003e\u003c/Col\u003e\n\u003c/Cols\u003e\n```\n\n### `\u003cCols /\u003e`\n\nThe wrapper component sets the defaults for all `\u003cCol /\u003e` components wrapped.\n\n`cols` The number of columns per row.\n\n`padding` The padding around the cols.\n\n`colSpace` The horizontal space between cols.\n\n`rowSpace` The vertical space between rows.\n\n`debug` Highlights cols with a light grey background.\n\n`style` Optional styles for the wrapper component.\n\n`colStyle` Optional styles applied to every col, possibly overriding generated\nvalues.\n\n### `\u003cCol /\u003e`\n\nThe column can be a configured with the following props:\n\n`span` How many columns the current column should take up.\n\n`offset` Empty columns to the left of the current column.\n\n`left/center/right` Denotes how the content should be aligned horizontally.\n\n`style` Optional styles added to the component, possibly overriding generated\nvalues.\n\n## Development\n\nThis plugin was build with [create-react-native-plugin](https://github.com/tobua/create-react-native-plugin) please refer to it's documentation on how to run the example app and make changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Freact-native-cols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobua%2Freact-native-cols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Freact-native-cols/lists"}