From 36973df709338262091428d253f29852d05a209a Mon Sep 17 00:00:00 2001 From: Andrej Guran Date: Sat, 3 Oct 2020 19:57:27 +0200 Subject: [PATCH] Update App.js When fontsLoaded == false and isLoadingComplete == true then none of the branches is executed and the App component returns undefined in the render function which results in invariant violation: Nothing was returned from render. This small fix should address this by returning null until fonts are loaded --- App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/App.js b/App.js index d932b6d..d7670af 100644 --- a/App.js +++ b/App.js @@ -75,6 +75,8 @@ export default props => { ); + } else { + return null } }