{"id":13655753,"url":"https://github.com/martinmoec/fable-react-native-template","last_synced_at":"2026-01-16T09:29:30.224Z","repository":{"id":34538782,"uuid":"164086566","full_name":"martinmoec/fable-react-native-template","owner":"martinmoec","description":"A template project for starting a new Fable React Native app","archived":false,"fork":false,"pushed_at":"2023-01-26T11:25:13.000Z","size":1010,"stargazers_count":4,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T04:05:41.887Z","etag":null,"topics":["dotnet-core","fable","fable-elmish","fsharp","react-native"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/martinmoec.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}},"created_at":"2019-01-04T09:25:08.000Z","updated_at":"2022-02-09T14:05:53.000Z","dependencies_parsed_at":"2023-02-14T16:46:12.338Z","dependency_job_id":null,"html_url":"https://github.com/martinmoec/fable-react-native-template","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/martinmoec%2Ffable-react-native-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinmoec%2Ffable-react-native-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinmoec%2Ffable-react-native-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinmoec%2Ffable-react-native-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinmoec","download_url":"https://codeload.github.com/martinmoec/fable-react-native-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223931548,"owners_count":17227256,"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":["dotnet-core","fable","fable-elmish","fsharp","react-native"],"created_at":"2024-08-02T04:00:33.335Z","updated_at":"2026-01-16T09:29:30.209Z","avatar_url":"https://github.com/martinmoec.png","language":"Objective-C","funding_links":[],"categories":["Templates","List"],"sub_categories":["React Native"],"readme":"# Template for starting out a new Fable React Native App using F#, .NET Core and Yarn\n\n## Requirements\n* Yarn or NPM\n    * ```brew install yarn```\n    * ```brew install npm```\n        * (comes with Node)\n* Node.js\n    * ```brew install node```\n* Watchman\n    * ```brew install watchman```\n* JDK \n    * ```brew tap AdoptOpenJDK/openjdk```\n    * ```brew cask install adoptopenjdk8```\n* React Native CLI\n    * ```npm install -g react-native-cli```\n\n* [.NET Core SDK](https://dotnet.microsoft.com/download)\n\n* XCode ( for iOS )\n    - install command line tools: ```xcode-select --install```\n\nbrew install node\nbrew install watchman\nbrew tap AdoptOpenJDK/openjdk\nbrew cask install adoptopenjdk8\n\n## Setup\nAfter cloning the respository cd into project root\n* ```yarn```\n* ```paket install```\n* ```cd src```\n* ```dotnet restore``` \n\n\n## Building JavaScript\n\n* Building for debug: ```yarn debug```\n* Building for release : ```yarn build```\n* Running with auto-compiling: ```yarn watch```\n    - Enables auto-updating when the F# project in ```src/``` is altered.\n\nOutput is built to ```out/```\n\n### Running the React Native application\n* iOS simulator: ```react-native run-ios```\n* Android: ```react-native run-android```\n\nRemember to build JavaScript files. If the package manager does not automatically start run ```react-native start``` before ```react-native run-(ios/android)```. \n\n\n## Error handling\n\n### iOS\n* ```No bundle URL present``` : \n    - Try cleaning build-output, kill metro bundler and rebuild. \n    - ```rm -rf ios/build/; kill $(lsof -t -i:8081); react-native run-ios```\n\n* ```No bundle URL present``` \u0026 the packager did not start automatically: \n    - Kill running instances \n    - Start packager manually ```react-native start```\n    - Re-run project after packager successfully starts ```react-native run-ios``` \n\n* ```Entry, \":CFBundleIdentifier\", Does Not Exist``` and similar\n    - open ```ios/ReactNativeApp.xcodeproj``` in XCode\n    - File -\u003e Project Settings... -\u003e Advanced\n        - Set build location to Custom\n        - Replace ```Build/..``` with ```build/Build/...``` for the Products and Intermediates entries\n        - E.g \n            - Products: ```build/Build/Products```\n            - Intermediates: ```build/Build/Intermediates.noindex```\n\n### Android\n\n* Licenses not accepted\n    - run ```\u003cAndroid folder\u003e/sdk/tools/bin/sdkmanager --licenses``` and accept all\n\n* Device unable to load script from asset\n    1. ```mkdir android/app/src/main/assets```\n    2. ```react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res```\n    3. ```react-native run-android```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinmoec%2Ffable-react-native-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinmoec%2Ffable-react-native-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinmoec%2Ffable-react-native-template/lists"}