{"id":17241907,"url":"https://github.com/pvinis/react-native-layout","last_synced_at":"2026-05-04T02:37:10.948Z","repository":{"id":140437478,"uuid":"113665825","full_name":"pvinis/react-native-layout","owner":"pvinis","description":"a layout library for react native apps","archived":false,"fork":false,"pushed_at":"2024-04-01T17:44:08.000Z","size":4,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T01:13:44.717Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/pvinis.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-09T11:57:32.000Z","updated_at":"2023-07-18T09:26:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"2dccb14f-3c73-4e48-b783-6d59a5bbfc4a","html_url":"https://github.com/pvinis/react-native-layout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvinis%2Freact-native-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvinis%2Freact-native-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvinis%2Freact-native-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvinis%2Freact-native-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvinis","download_url":"https://codeload.github.com/pvinis/react-native-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245580369,"owners_count":20638784,"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":["react-native"],"created_at":"2024-10-15T06:11:42.691Z","updated_at":"2026-05-04T02:37:05.893Z","avatar_url":"https://github.com/pvinis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"My react native Layout library\n===\n\nI made this to help me with some repeating problems and annoyances I had/have while writing react native apps.\n\nDetails\n===\n\n`Flex` is nice to use because I don't need to type `style={{ flex: 1 }}` all the time. Also it's very easy to try with and without flex, by changing from `\u003cFlex\u003e` to `\u003cFlex noflex\u003e` and back.\n\n`Spaced` is my second most used layout. It allows me to have a bunch of views with specific space `between` them and `around` them. Sometimes with flex it's hard to have a specific size, or you need to add empty views on the edges in order to have one size of space around and between, so I put all than in there. It has `inner`, which is the space between items, `outer`, for the space around the edge items, and `size`, which is the `inner` and `outer` together.\n\n`Split` started as an easy way to had a view with two subviews, that automatically get 50% of the available space each. I want to add functionality like `space={ [30, 70] }` and that would make the first view 30% and the second one 70% etc.\n\n`Empty` is not often useful, but sometimes it's needed, and now it's here.\n\n`Screen` is what I use for every new screen in my apps. It is basically a `Flex` with optional shadow, and some base style.\n\n`Separator` is pretty self-explanatory, it's just an easy way to add a separator between views.\n\n`Shadow` is also simple, it adds a small shadow on the top of the view, usually used for adding shadow below the navbar.\n\n\nTo do\n===\n\nadd a `package.json`\nmake it into an npm package\nadd examples of code and screenshots\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvinis%2Freact-native-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvinis%2Freact-native-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvinis%2Freact-native-layout/lists"}