{"id":22211434,"url":"https://github.com/rundmt/react-native-flexbox-grid","last_synced_at":"2025-04-09T21:22:47.347Z","repository":{"id":57337068,"uuid":"47345363","full_name":"rundmt/react-native-flexbox-grid","owner":"rundmt","description":"Responsive Grid for React Native","archived":false,"fork":false,"pushed_at":"2023-06-18T13:05:23.000Z","size":21,"stargazers_count":99,"open_issues_count":7,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-16T07:31:00.965Z","etag":null,"topics":["flexbox-grid","grid","layout","react-native","responsive"],"latest_commit_sha":null,"homepage":"","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/rundmt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-12-03T16:39:58.000Z","updated_at":"2023-06-18T13:05:28.000Z","dependencies_parsed_at":"2022-09-12T13:42:46.154Z","dependency_job_id":null,"html_url":"https://github.com/rundmt/react-native-flexbox-grid","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":0.08695652173913049,"last_synced_commit":"8174b92080d2050e29cb5616b1e83aea8c0d32de"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rundmt%2Freact-native-flexbox-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rundmt%2Freact-native-flexbox-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rundmt%2Freact-native-flexbox-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rundmt%2Freact-native-flexbox-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rundmt","download_url":"https://codeload.github.com/rundmt/react-native-flexbox-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248112897,"owners_count":21049746,"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":["flexbox-grid","grid","layout","react-native","responsive"],"created_at":"2024-12-02T20:32:25.012Z","updated_at":"2025-04-09T21:22:47.321Z","avatar_url":"https://github.com/rundmt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Warning: This package is no longer maintained\n\n# Flexbox Grid\n\nA Set of React Native Components to make a grid easier to reason about.\n\n# The Problem\nResponsive Design is easy on the web but a bit harder on a mobile app.\n\nI'm experimenting with using a CSS type grid to have conditional looks based on device width similar to media queries.\n\n# Getting Started\n\n### Installation\n\nIn your react native project\n\n```\nnpm install react-native-flexbox-grid\n```\n\n### Import\n\n```\nimport {Column as Col, Row} from 'react-native-flexbox-grid';\n```\n\n### Basic Example\n\n```\n\u003cView style={styles.container}\u003e        \n  \u003cRow size={12}\u003e\n    \u003cCol sm={6} md={4} lg={3}\u003e\n      \u003cText\u003e\n        First Column\n      \u003c/Text\u003e\n    \u003c/Col\u003e\n    \u003cCol sm={6} md={4} lg={3}\u003e\n      \u003cText\u003e\n        Second Column\n      \u003c/Text\u003e\n    \u003c/Col\u003e\n  \u003c/Row\u003e      \n\u003c/View\u003e\n```\n\nThe api is inspired by\n[react-flexbox-grid](https://www.npmjs.com/package/react-flexbox-grid), but it is not exactly the same.\n\nThe main difference is you can specify the grid size. By default `\u003cRow\u003e` is a size of 12. However if you want you can make a `\u003cRow\u003e` any size you want.\n\n### More Documentation\n\n[Documentation](https://github.com/rundmt/react-native-flexbox-grid/wiki/Documentation)\n\n#### Changes for 0.3.0\n\nReact Native now supports percentages as of 0.42. All of our versions going forward will rely on percentages. It has much faster performance compared to what we did before when we relied on `onLayout`. The API for apps is the same. There should be no difference in expected output of your app.\n\n#### Changes for 0.2.0\n\nAs of 0.2.0 Row will automatically wrap components. If you do not want components to automatically wrap you must specify `nowrap` in the row's prop.\n\n```\n  \u003cRow size={12} nowrap\u003e\n```\n\n## Known Issues\n\nFor react-native 0.41 and earlier you muse use `react-native-flexbox-grid@0.2.0` or earlier.\n\nSince React Native before 0.41 and earlier doesn't support percentages we have to rely on using React Native's `onlayout` to pass the width of the parent to the child. This causes layouts to be a bit slow, because the child has to wait for the parent to layout and then rerender. This problem is resolved by using react native 0.42 and the `react-native-flexbox-grid@0.3.0` or later.\n\n\n### What's working\n* Basic Grid\n* Styles\n* Hiding Items\n* Basic Unit Testing\n\n### To Do\n* Integration Testing. (Possibly New Examples Repo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frundmt%2Freact-native-flexbox-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frundmt%2Freact-native-flexbox-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frundmt%2Freact-native-flexbox-grid/lists"}