{"id":39029038,"url":"https://github.com/tanben/reactnative-microfrontend","last_synced_at":"2026-01-17T17:36:03.836Z","repository":{"id":190733551,"uuid":"680656493","full_name":"tanben/reactnative-microfrontend","owner":"tanben","description":"Sample LaunchDarkly React native micro frontend application","archived":false,"fork":false,"pushed_at":"2025-04-22T20:16:18.000Z","size":9855,"stargazers_count":5,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T21:24:49.163Z","etag":null,"topics":["launchdarkly","micro-frontend","microapps","module-federation","react-native","repack","superapp"],"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/tanben.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,"zenodo":null}},"created_at":"2023-08-20T00:49:06.000Z","updated_at":"2025-04-22T20:15:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6659271d-edf1-4c90-9475-1c3a1eeb62a0","html_url":"https://github.com/tanben/reactnative-microfrontend","commit_stats":null,"previous_names":["tanben/sample-reactnative-mfe","tanben/reactnative-microfrontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tanben/reactnative-microfrontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanben%2Freactnative-microfrontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanben%2Freactnative-microfrontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanben%2Freactnative-microfrontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanben%2Freactnative-microfrontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanben","download_url":"https://codeload.github.com/tanben/reactnative-microfrontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanben%2Freactnative-microfrontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28513515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["launchdarkly","micro-frontend","microapps","module-federation","react-native","repack","superapp"],"created_at":"2026-01-17T17:36:03.309Z","updated_at":"2026-01-17T17:36:03.829Z","avatar_url":"https://github.com/tanben.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native LaunchDarkly Micro Frontend Demo\nThis project demonstrates how to build a micro frontend application using React Native, LaunchDarkly, and Re.Pack for module federation.\n\n![](./rn-demo.gif)\n\n## Features\n\n* Utilizes LaunchDarkly for feature flag management\n* Implements module federation with Re.Pack\n* Returns flag variations based on evaluated context.\n\n## Prerequisites\n* LaunchDarkly account\n* React v18.2.0\n* React Native v0.71.12\n* LaunchDarkly React Native SDK v7.1.6\n* Re.pack v3.4.0\n* [IOS Simulator](https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes)\n\n## Setup\n1. Clone the repository:\n```\ngit clone https://github.com/tanben/sample-reactnative-mfe\ncd sample-reactnative-mfe\n```\n2. Install dependencies:\n\n```\nnpm run install\n```\n3. Create two LaunchDarkly projects with the following feature flags:\n\n* color (STRING): Assign a color for the on and off states (e.g., red for ON and grey for OFF).\n* enable-dark-mode (BOOLEAN, optional): Enable or disable dark mode.\n\n\n4. Update the host/Config.js and app1/Config.js files with your LaunchDarkly project's mobileKey. Other properties are optional.\n\n```\nconst ldProjects = {\n  MFE1: {\n    key: '',\n    url: '',\n    mobileKey: 'your mobile key',\n  },\n  MFE2: {\n    key: '',\n    url: '',\n    mobileKey: 'your mobile key',\n  },\n};\n```\n5. In host/Config.js, set the mobileKey from app1 in the secondaryMobileKeys object:\n```\nconst ldConfig = {\n  mobileKey: ldProjects.MFE2.mobileKey,\n  secondaryMobileKeys: {\n    'app1': '\u003cmobile key from app1 container\u003e'\n  },\n  ...\n}\n```\n\n\n## Running the app\n1. Run host and remote app.\n```\nnpm run start:app1\nnpm run start:host\n```\n2. Run Host IOS app\n```\nnpm run ios:host\n```\n3. Run App1 IOS app\n```\nnpm run ios:app1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanben%2Freactnative-microfrontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanben%2Freactnative-microfrontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanben%2Freactnative-microfrontend/lists"}