Static properties can't refer to the current class within inline export default #20153
Closed
3 tasks done
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
JavaScript
Stale
There has been a lack of activity on this issue and it may be closed soon.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
Environment
Description
In React Native, a static property can't refer to the current class if the class have an inline
export default
.React Native (not working) 🔴
Snack link: https://snack.expo.io/Bys85tXXX
React Native (working)
Moving the
export default
after the class declaration solved the issue.Can't be reproduced in Snack (we still get the previous error), but can be reproduced in a local react-native@0.56.0 project.
React (working)
Stackblitz link: https://stackblitz.com/edit/react-15s44p
The text was updated successfully, but these errors were encountered: