Hooks and function components?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- fsharp, react-native
- Domain
- mobile
Research direction
Start by reproducing the crash when using Fable.React.FunctionComponent.Of(...) in the React Native app, then trace the module.hot.addStatusHandler error and the resulting AppRegistry failures. Done means function components can be used without the crash and the application registers and launches normally.
Written by the indexing model from the issue text.
Description
fable-react supports function components but it seems they can't be used in fable-react-native. Am I missing something here (likely, I'm new to f#)? My react-native app crashes if I try to use Fable.React.FunctionComponent.Of(...)
ERROR TypeError: module.hot.addStatusHandler is not a function. (In 'module.hot.addStatusHandler(function (status) {
if (status === "apply") (function () {
cache.clear();
})();
})', 'module.hot.addStatusHandler' is undefined)
[Wed Jul 22 2020 11:36:26.377] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Wed Jul 22 2020 11:36:26.377] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Wed Jul 22 2020 11:36:26.377] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag)
[Wed Jul 22 2020 11:36:26.378] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
- Dominant language
- F#
- Stars
- 53
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fable-compiler/fable-react-native
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fable-compiler/fable-react-native#65 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
fable-compiler/fable-react-native#59 · 8 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
fable-compiler/fable-react-native#54 · 7 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
fable-compiler/fable-react-native#53 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fable-compiler/fable-react-native#37 · 2 comments ·
All issues in fable-compiler/fable-react-native
Similar issues
-
Xcode 27Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
airbnb/HorizonCalendar#349 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rokwire/illinois-app#6060 ·
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
TelegramMessenger/Telegram-iOS#2354 ·
-
Type Pick Request
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
reactwg/react-native-releases#1435 · 1 comment ·