Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix React Native error from function declaration hoisting
It is unknown why relying upon function declaration hoisting causes an error in React Native, but it does occur. Recent changes with WordPress#28676 refactored a class to a functional component, including leveraging function declaration hoisting. I.e. the function was referenced prior to its declaration in terms of the order of the lines of code. Re-ordering the code so that the function declaration occurs prior to referencing it appears to resolve the error in React Native. Related: https://git.io/JtXMm
- Loading branch information