{"id":21532407,"url":"https://github.com/jeepeng/react-native-roots","last_synced_at":"2026-05-17T12:05:47.487Z","repository":{"id":57339691,"uuid":"101721541","full_name":"Jeepeng/react-native-roots","owner":"Jeepeng","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-25T08:55:47.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T20:04:11.476Z","etag":null,"topics":["react-native","react-native-root-view","react-native-roots"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jeepeng.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":"2017-08-29T05:15:50.000Z","updated_at":"2023-03-10T22:45:21.000Z","dependencies_parsed_at":"2022-09-04T14:23:08.872Z","dependency_job_id":null,"html_url":"https://github.com/Jeepeng/react-native-roots","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/Jeepeng%2Freact-native-roots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jeepeng%2Freact-native-roots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jeepeng%2Freact-native-roots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jeepeng%2Freact-native-roots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jeepeng","download_url":"https://codeload.github.com/Jeepeng/react-native-roots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244096497,"owners_count":20397428,"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","react-native-root-view","react-native-roots"],"created_at":"2024-11-24T02:19:50.577Z","updated_at":"2026-05-17T12:05:42.449Z","avatar_url":"https://github.com/Jeepeng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-roots\n```\n\u003cView\u003e\n  \u003cApp /\u003e         \u003c---- original app\n  \u003cYourView1 /\u003e   \u003c---- your view\n  \u003cYourView2 /\u003e   \u003c---- your view\n  \u003cYourView3 /\u003e   \u003c---- your view\n  ...\n\u003c/View\u003e\n```\n# Installation\n```shell\nnpm install react-native-roots --save\n```\n\n# Usage\n```js\nimport Roots from 'react-native-roots';\n\n// add root view\nRoots.add('loading', (\n  \u003cView style={styles.container}\u003e\n    \u003cView style={styles.mask}\u003e\n      \u003cActivityIndicator\n        animating\n        size=\"small\"\n        color=\"#fff\"\n      /\u003e\n    \u003c/View\u003e\n  \u003c/View\u003e\n));\n\n// remove root view\nRoots.remove('loading');\n```\n\n# API\n## add(key, element)\nadd root view\n\n## remove(key)\nremove root view\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeepeng%2Freact-native-roots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeepeng%2Freact-native-roots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeepeng%2Freact-native-roots/lists"}