React Native Hot Reload breaks tcomb-form-native
See original GitHub issueVersion
tcomb-form-native
:0.4.0
react-native
:0.22.0-rc4
Expected behaviour
React Native 0.22 introduces Hot Reload and after a code change the hot reload behaviour should not break the plugin.
Actual behaviour
After a code change the plugin throws an error.
Steps to reproduce
- New react native project
- Add a
tcomb-form-native
form - Enabled Hot Reload in the app
- Make a change while the app is running
Stack trace and console log
The error that is thrown:
[tcomb][tcomb-form-native] missing stylesheet config
Additional information
- The error is thrown in the
Form.render
method by the assert - The
stylesheet
variable is indeedundefined
after a code change - The other asserts fail as well (
templates
andi18n
) - Hot Reload works by wrapping components with a shell that can reloads its component, so somehow the assignments in the
index.js
file are ignored
Issue Analytics
- State:
- Created 8 years ago
- Reactions:11
- Comments:44 (23 by maintainers)
Top Results From Across the Web
Introducing Hot Reloading - React Native
The idea behind hot reloading is to keep the app running and to inject new versions of the files that you edited at...
Read more >React Native CLI project: How to fix hot reload when using ...
To fix this I've found that I need to have a class based root component since hot reload does not support functional root...
Read more >State of React Native 2018 - Hacker News
The biggest problem I've run into with React Native has been their ... hot reload is a much better experience than react-native or...
Read more >How to do validation with React Native package tcomb-form ...
Coding example for the question How to do validation with React Native package tcomb-form-native-React Native.
Read more >Learn React Native Developer Tools
Hot Reloading is not gonna reload your entire application. It's just going to patch the code that was changed and keep the state...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those on the same low level as I am, it seems that the import implementation:
does not work as of 0.4.3
Hey guys, is everything ok now?
Sorry @alvaromb, the wrong export was my fault.